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?
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With