artista_14
artista_14

Reputation: 716

Unable to remove Bootstrap Dependency From Angular 13

I have removed all the bootstrap references from package.json and styles but still I am getting the error - no such file or directory, lstat 'angular-src\node_modules\bootstrap'. I checked the logs the error is coming from @angular-devkit/build-angular(13.3.5).

enter image description here

Upvotes: 1

Views: 619

Answers (2)

artista_14
artista_14

Reputation: 716

Solution: Later I found that there are references of bootstrap present in angular.json. I removed those references from angular.json and built the solution again. Working fine now.

Upvotes: 1

Sven Märki
Sven Märki

Reputation: 197

Were you serving the application while you did these steps?

If you did:

Stop the application in the terminal with:

Ctrl + C

And serve the application again with:

ng serve

Upvotes: 0

Related Questions