Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TypeScript - Initialization error in WebStorm after update to Angular 7

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?

like image 564
student18 Avatar asked Nov 28 '22 21:11

student18


1 Answers

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

like image 100
lena Avatar answered Dec 04 '22 13:12

lena