【发布时间】:2017-10-12 14:00:33
【问题描述】:
我使用 ncu 更新了 npm 包(npm 检查更新)。更新所有包后,构建过程抛出错误。
完成我的 gulp 任务并删除一个名为“Precss”的 PostCSS 插件后,一切正常。我还尝试将这个插件单独恢复到旧版本,它可以工作。
不幸的是 Precss 是我需要的主要插件,以便在我的 CSS 中使用类似 SASS 的功能。此插件必须是最新版本,因为另一个名为 postcss-calc 的插件依赖于 Precss 插件。
下面是抛出的错误:
Node#before is deprecated. Use Node#raws.before
(node:8447) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot set property 'parent' of undefined
(node:8447) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): TypeError: Cannot set property 'parent' of undefined
(node:8447) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 3): TypeError: Cannot set property 'parent' of undefined
(node:8447) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 4): TypeError: Cannot set property 'parent' of undefined
(node:8447) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 5): TypeError: Cannot set property 'parent' of undefined
(node:8447) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 6): TypeError: Cannot set property 'parent' of undefined
(node:8447) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 7): TypeError: Cannot set property 'parent' of undefined
(node:8447) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 8): TypeError: Cannot set property 'parent' of undefined
(node:8447) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 9): TypeError: Cannot set property 'parent' of undefined
(node:8447) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 10): TypeError: Cannot set property 'parent' of undefined
【问题讨论】: