3

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
1
  • Same issue here after updating my packages today... Commented Jan 1, 2018 at 20:56

1 Answer 1

3

It worked to me:

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

"last 1 major version",

">= 1%",

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.