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

Error with postcss plugin

This is the log when I tried to create ng build -prod, I use angular universal, just give me this 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. 
+4
source share
1 answer

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

first install it globally:

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

// then you should update the current project:

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

Source: https://habr.com/ru/post/1693431/


All Articles