4

I am using WebStorm (version 2018.2.5) for developing my Angular application. After updating to Angular 7, I always get the following error in the TypeScript window of WebStorm:

Error:Initialization error (angular 2 language service). Cannot read property 'CommandTypes' of undefined

After research I found this tracked issue from JetBrains and it says it is fixed with version 2018.2.3.link


So I shouldn't get this error anymore? But it is still there.. My app still can compile and run commands like ng serve so my application runs anyway correctly.

Anyone has an idea how to get rid of this error? Is this error JetBrains WebStorm related?

1 Answer 1

22

WEB-34463 is fixed in 2018.3 EAP, fix is not available in 2018.2.5.

As a workaround, try changing Typescript version to Bundled in Settings | Languages & Frameworks | TypeScript, or disable Angular language service there

Sign up to request clarification or add additional context in comments.

2 Comments

thanks, I didn't notice this. Disabling angular language service works for now
Worked for me. Bundled typescript is v3.0.1, while in project I have v3.2.4

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.