0

Not able to load Bootstrap to one of component in new Angular 13 Project.

  1. angular.json file has below lines already added:
"styles": [
              "src/styles.css",
              "./node_modules/bootstrap/dist/css/bootstrap.min.css"
              ],
  1. I verified that I have bootstrap installed at above location.
  2. I installed bootstrap using below node command: npm install bootstrap@3
1
  • Issue solved now, I did: ctrl+c : stop terminal. ng serve --open It restarted the app and things worked well afterwards. Commented Jun 2, 2023 at 19:08

1 Answer 1

0

Your setup looks fine. I usually also install @ng-bootstrap/bootstrap, to use bootstrap modals.

The documentation mentions this compatibility table, but these are really just guidelines.

compatibility

I've been using the following versions with Angular 14.0.6, without any issues at all. So, I'm pretty sure that you could use them with Angular 13 as well.

"@ng-bootstrap/ng-bootstrap": "^6.2.0",
"bootstrap": "^4.4.1",

And as you mentioned, I have in the angular.json

"styles": [
  "node_modules/bootstrap/dist/css/bootstrap.min.css",
  "src/styles.css"
],
Sign up to request clarification or add additional context in comments.

1 Comment

Is it necessary to install additional JS files when using Angular 14 with Bootstrap 3.3.7?

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.