将角度4迁移到角度6问题

时间:2018-10-18 13:10:22

标签: angular webpack postcss

将我的应用程序迁移到angular 6之后,该应用程序不会再出现下一个错误。

我不知道可能涉及哪个设置或程序包?

我正在使用webpack 4.21.0

ERROR in ./src/app/outilsvg/forms.css
Module build failed (from ./node_modules/postcss-loader/index.js):
TypeError: loader._compilation.applyPluginsWaterfall is not a function
    at /home/sancelot/NODEJS/PROJET2/PROJVIDE/node_modules/postcss-loader/index.js:122:43
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
ERROR in ./src/styles.css (./node_modules/raw-loader!./node_modules/postcss-loader??embedded!./src/styles.css)
Module build failed (from ./node_modules/postcss-loader/index.js):
TypeError: loader._compilation.applyPluginsWaterfall is not a function
    at /home/sancelot/NODEJS/PROJET2/PROJVIDE/node_modules/postcss-loader/index.js:122:43
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)

1 个答案:

答案 0 :(得分:0)

npm已过时,指出我使用的是1.3.0版本,而不是postcss-loader的3.0.0版本。

我正在使用postcss-loader