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.

0
5 comments

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

0
Avatar
Permanently deleted user

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...)

0
Avatar
Permanently deleted user

As to Typescript settings I had to disable them completely (after upgrading to the latest version, namely 2.6.2)

0
Avatar
Permanently deleted user

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.

0

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

0

Please sign in to leave a comment.