Error:Initialization error (typescript). Cannot find tsserverlibrary.js or tsserver.js file

IntelliJ 2017.2.1 - the typescript pane gives this error "Error:Initialization error (typescript). Cannot find tsserverlibrary.js or tsserver.js file"

There is absolutely no information as to how to resolve this anywhere searching the web or on jetbrains support. Please help solve this issue so my typescript typechecking works once again. Thank you.

0
4 comments

what do your TypeScript preferences look like? Please attach screenshots of Settings | Languages & Frameworks | TypeScript page and Configure Typescript compiler dialog (shown on pressing Edit next to TypeScript Version)

0
Avatar
Permanently deleted user

Hi. I have attacehed both screenshots. I tried changing the configure Typescript compiler to both "detect automatically" and "bundled" with no difference in the error message.

 

0

please change it to Bundled and restart the service

does the problem persist?

0
Avatar
Permanently deleted user

This is bizzare, I changed it to bundled, then unchecked "Enable typescript compiler" and suddenly it works. Now even when I change it back to "detect automatically" it works. I can't understand how it started working now? But it appears to be fixed as it is showing me proper typescript errors now. Thanks.

0

Please sign in to leave a comment.