Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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. 
like image 364
Pablo Reinoso Avatar asked Jan 29 '23 17:01

Pablo Reinoso


1 Answers

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

at first install it globally :

npm install -g @angular/[email protected]

// then you should update your current project:

npm install --save-dev @angular/[email protected]
 
like image 134
Unique_boy96 Avatar answered Jan 31 '23 06:01

Unique_boy96