ManhHa Nguyen
ManhHa Nguyen

Reputation: 31

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

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

Upvotes: 3

Views: 1903

Answers (1)

heringer
heringer

Reputation: 3188

It worked to me:

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

"last 1 major version",

">= 1%",

Upvotes: 3

Related Questions