Webstorm does not recognize Angular elements/components

Suddenly, without changing something, Webstorm does not recognize the Angular elements/components etc. First time this happened I restored the IDE to its default settings and the problem solved, but now, the warning appeared again. 

 

2
8 comments

Looks like Angular support is not enabled for your project; there can be multiple reasons for this issue - broken installation, missing plugins, project misconfiguration.
Please check that Angular and AngularJS plugin is installed and enabled in Settings | Plugins, and that node_modules\@angular\core folder is not excluded from project (see what color it's shown with in Project explorer)

0
Avatar
Permanently deleted user

I have the Angular & AngularJS plugin installed and enabled, but my project explorer is greyed out :/

0

You must be using some custom theme plugin... But, as far as I can see, the node_modules folder is not marked as library root as it should. Please share screenshots of Settings | Directories and Settings | Languages & Frameworks | JavaScript | Libraries pages

0
Avatar
Permanently deleted user

Ι re-opened the project and now works fine. What causes this?

0

No idea; nice to hear it works now

0

Im having the same issue with the latest version of Webstorm today. Even restarting does not fix

0

Please check that Angular and AngularJS plugin is installed and enabled in Settings | Plugins, and that node_modules\@angular\core folder is not excluded from project (see what color it's shown with in Project explorer)

0

I hope this helps someone.

1. Invalidate all caches: File>Invalidate Caches

2. Delete your node_modules folder completely

3. Run: npm i

4. Give webstorm a few moments to index everything.

1

Please sign in to leave a comment.