CodyBugstein
CodyBugstein

Reputation: 23322

VSCode cannot locate path in Angular project

I am using VSCode to learn about the library ngx-bootstrap.

The problem I am having however is that VSCode cannot recognize some of the paths used in the project (and I can't either!)

For example, in one file, some code is imported from 'ngx-bootstrap/component-loader' yet there is no directory by that name anywhere, let alone relative to the file in question. (GitHub link here)

My question is, how does this code work when the file references do not?

Upvotes: 0

Views: 302

Answers (1)

CodyBugstein
CodyBugstein

Reputation: 23322

The problem was that npm install did not run correctly.

Once I got it running properly, the problem disappeared

Upvotes: 1

Related Questions