Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ERROR in ./node_modules/bootstrap/dist/css/bootstrap.css

Tags:

angular

I am using angular 5:

build : ng build --prod

Error:

10% building modules 4/6 modules 2 active ...ules/bootstrap/dist/css/bootstrap.css Unknown error from PostCSS plugin. Your current PostCSS version is 6.0.14, but autoprefixer uses
5.2.18.

Perhaps this is the source of the error below.

69% building modules 768/771 modules 3 active ...ules/bootstrap/dist/css/bootstrap.css Unknown error from PostCSS plugin. Your current PostCSS version is 6.0.14, but autoprefixer uses
5.2.18.

Perhaps this is the source of the error below.

ERROR in ./node_modules/bootstrap/dist/css/bootstrap.css Module build failed: BrowserslistError: Unknown browser major
like image 660
ManhHa Nguyen Avatar asked Jan 28 '26 17:01

ManhHa Nguyen


1 Answers

It worked to me:

  1. Edit node_modules\bootstrap\package.json
  2. Remove these lines:

"last 1 major version",

">= 1%",

like image 119
heringer Avatar answered Jan 31 '26 18:01

heringer



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!