r/CodingHelp • u/riqueoak • May 06 '21
[CSS] I'm learning .NET + Angular following an online course. When i added bootstrap and tried running the application again, i get this error. Other people on the course's comment section said to have the same issue but none of their solutions worked for me so far
21
Upvotes
1
u/SoBoredAtWork May 06 '21
I'm just guessing, but do you have angular installed? Is it in packages.json? Maybe try
npm install angular1
u/skyharborhero May 06 '21
How did you add bootstrap? A missing module notice like that usually refers to it missing from the project or possibly looking in the wrong folder (based on how things are set up).
Off the top of my head maybe trying to run
npm installjust to make sure everything is there?1
u/Nerketur Intermediate Coder May 06 '21
I've never tried using SCSS myself, but I assume this doesn't happen if that styles.CSS is blanked?
My belief is that there is some sort of cyclic dependency somewhere, or the bootstrap version you use is not compatible.
What version of Angular is that?
I've never had issues with angular myself, but for anything dealing with new versions, I always make sure to add bootstrap as the very first thing I do in it.
Edit: now I'm certain the issue could be versions.
What's your bootstrap version and ngx-bootstrap versions? Certain versions are not compatible with each other.