Reputation: 716
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).
Upvotes: 1
Views: 619
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
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