2017-05-13 8 views
0

ncu(npm check updates)を使用してnpmパッケージを更新しました。すべてのパッケージが更新された後、ビルドプロセスでエラーが発生しています。更新後にGulp付きPostCSSでエラーが発生する

私のgulpタスクを実行し、 "Precss"と呼ばれるPostCSSプラグインを削除した後、すべてのものが機能します。私もこのプラグインを古いバージョンに戻してみました。

残念ながら、私のCSSでSASSのような機能を使用するには、Precssが必要なメインプラグインです。 Precssプラグインに依存するpostcss-calcという別のプラグインがあるため、このプラグインは最新のバージョンでなければなりません。

以下

スローされるエラーです。...私はだけではなく、使用の私のpackage.jsonに修正の依存関係によって解決全く同じ問題が、「最新」バージョンを持っていた

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 

答えて

0

私のモジュールのバージョンがあります。それは役に立ちます:

$ npm list --depth=0 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
└── [email protected] 
関連する問題