简体   繁体   中英

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?

The problem was that npm install did not run correctly.

Once I got it running properly, the problem disappeared

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM