Why postcss-merge-rules vesion give me an error Angular 5 - Webpack

匿名 (未验证) 提交于 2019-12-03 07:36:14

问题:

Error with postcss plugin

This a log when I tried a ng build --prod, I' using angular universal only give me that error with bootstrap and font-awesome.

10% building modules 4/6 modules 2 active ...ules/bootstrap/dist/css/bootstrap.cssUnknown error from PostCSS plugin. Your current PostCSS version is 6.0.17, but postcss-merge-rules uses 5.2.18. Perhaps this i 55% building modules 380/383 modules 3 active ...ules/bootstrap/dist/css/bootstrap.cssUnknown error from PostCSS plugin. Your current PostCSS version is 6.0.17, but postcss-merge-rules uses 5.2.18. Perhaps this is the source of the error below.  

回答1:

I had the same problem, you should update you angular cli version to the latest beta, run this command:

at first install it globally :

npm install -g @angular/cli@1.7.0-beta.1 

// then you should update your current project:

npm install --save-dev @angular/cli@1.7.0-beta.1 


标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!