Webstorm 2018 Angular Language Services Problems
Having had a look around for a solution to my problem which is as follows:
Webstorm not sensing when I have imported Angular components that don't even exist (so no IDE errors until compile time).
Disabling Angular Language Services somewhat mitigates the issue but does not solve the problem altogether as the errors shown are a bit misleading.
So was wondering if there was a fix in upcoming releases.
Please sign in to leave a comment.
Webstorm definitely does show errors when importing non-existing modules/components...
>Disabling Angular Language Services somewhat mitigates the issue but does not solve the problem altogether as the errors shown are a bit misleading
what errors are shown then? what did you disable namely? Please provide screenshots of the errors and screenshot of Settings | Languages & Frameworks | TypeScript page
When Angular Language Services is enabled (the default) Webstorm is not showing errors when I add a non existent component (UserBledCOmponent in the attached photo)
With Typescript Language Services on (only a slight discoloration)
Without the services, better but i'm still not seeing the file highlighted in red when I look at the left panel...)
As to Typescript settings I had to disable them completely (after upgrading to the latest version, namely 2.6.2)
Having said all that, I only started having this problem recently but can't say when exactly as I have been working on VS Code quite a bit the last few months. It could very well be when I upgraded to 2018.x a few days ago but can's say for sure.
Please change your Node.js version to some lower one (8.x, for example). Angular doesn't yet support Node 9, and the language service doesn't work with this version (https://github.com/angular/angular/issues/21420). Exceptions thrown by Angular service cause Typescript service failures, as a result nothing works at all