-1
I hit with the following problem in Angular while trying to install Bootstrap in its version 4:
ERROR in ./node_modules/css-loader?{"sourceMap":false,"importLoaders":1}!./node_modules/postcss-loader/lib?{"ident":"postcss","sourceMap":false}!./node_modules/bootstrap/dist/css/bootstrap.css
Module build failed: BrowserslistError: Unknown browser major
at error (C:\wamp64\www\angular\emag2\node_modules\browserslist\index.js:37:11)
at Function.browserslist.checkName (C:\wamp64\www\angular\emag2\node_modules\browserslist\index.js:320:18)
at Function.select (C:\wamp64\www\angular\emag2\node_modules\browserslist\index.js:438:37)
at C:\wamp64\www\angular\emag2\node_modules\browserslist\index.js:207:41
at Array.forEach (<anonymous>)
at browserslist (C:\wamp64\www\angular\emag2\node_modules\browserslist\index.js:196:13)
at Browsers.parse (C:\wamp64\www\angular\emag2\node_modules\autoprefixer\lib\browsers.js:44:14)
at new Browsers (C:\wamp64\www\angular\emag2\node_modules\autoprefixer\lib\browsers.js:39:28)
at loadPrefixes (C:\wamp64\www\angular\emag2\node_modules\autoprefixer\lib\autoprefixer.js:56:18)
at plugin (C:\wamp64\www\angular\emag2\node_modules\autoprefixer\lib\autoprefixer.js:62:18)
at LazyResult.run (C:\wamp64\www\angular\emag2\node_modules\postcss-loader\node_modules\postcss\lib\lazy-result.js:277:20)
at LazyResult.asyncTick (C:\wamp64\www\angular\emag2\node_modules\postcss-loader\node_modules\postcss\lib\lazy-result.js:192:32)
at LazyResult.asyncTick (C:\wamp64\www\angular\emag2\node_modules\postcss-loader\node_modules\postcss\lib\lazy-result.js:204:22)
at LazyResult.asyncTick (C:\wamp64\www\angular\emag2\node_modules\postcss-loader\node_modules\postcss\lib\lazy-result.js:204:22)
at processing.Promise.then._this2.processed (C:\wamp64\www\angular\emag2\node_modules\postcss-loader\node_modules\postcss\lib\lazy-result.js:231:20)
at new Promise (<anonymous>)
@ ./node_modules/bootstrap/dist/css/bootstrap.css 4:14-127
@ multi ./node_modules/bootstrap/dist/css/bootstrap.css ./src/styles.css
What to do to fix?