Issues adding Bootstrap 4 #209

Closed
opened 2025-08-09 17:15:25 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @mohsinma on 1/25/2018

After adding bootstrap 4 (along with popper.js and JQuery). ng build/ng serve is broken.
error message below:

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.min.css
Module build failed: BrowserslistError: Unknown browser major
at error (D:\TestApps\DotNetCoreCli-Bootstrap\ClientApp\node_modules\browserslist\index.js:37:11)
at Function.browserslist.checkName (D:\TestApps\DotNetCoreCli-Bootstrap\ClientApp\node_modules\browserslist\index.js:320:18)

FYI: tried importing boostrap.css in the algular-cli.json and also tried importing it in the styles.css, nothing seems working
When I revert back to bootstrap 3.3.7 it works fine.

*Originally created by @mohsinma on 1/25/2018* After adding bootstrap 4 (along with popper.js and JQuery). ng build/ng serve is broken. error message below: _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.min.css Module build failed: BrowserslistError: Unknown browser major at error (D:\TestApps\DotNetCoreCli-Bootstrap\ClientApp\node_modules\browserslist\index.js:37:11) at Function.browserslist.checkName (D:\TestApps\DotNetCoreCli-Bootstrap\ClientApp\node_modules\browserslist\index.js:320:18)_ FYI: tried importing boostrap.css in the algular-cli.json and also tried importing it in the styles.css, nothing seems working When I revert back to bootstrap 3.3.7 it works fine.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#209
No description provided.