I have developed an application using angular 5
, integrated ng-bootstrap
, and now trying to link the bootstrap
css file from node_modules:
../node_modules/bootstrap/dist/css/bootstrap.min.css
. However, upon running the ng build
command, I encountered the following error:
ERROR in ./node_modules/css-loader?{"sourceMap":false,"importLoaders":1}!./node_modules/postcss-loader/lib?{"ident":"postcss","sourceMap":false}!./node_modules/sass-loader/lib/loader.js?{"sourceMap":false,"precision":8,"includePaths":[]}!./node_modules/bootstrap/scss/bootstrap.scss
Module build failed: BrowserslistError: Unknown browser major
at error (/Users/***/dev/***/node_modules/browserslist/index.js:37:11)
..................................
..................................
..................................
at new Promise (<anonymous>)
@ ./node_modules/bootstrap/scss/bootstrap.scss 4:14-164
@ multi ./node_modules/bootstrap/scss/bootstrap.scss ./src/styles.css
node version: 8.9.1
typescript version: 2.6.0
npm version: 5.5.1
angular version: 5.2.0
bootstrap version: ^4.0.0
ng-bootstrap version: "^1.0.0-beta.8
Do you have any insights on how to solve this issue?