Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WebStorm 2016.1 TypeScript "Cannot start compiler process"

I've just installed JetBrains WebStorm 2016.1.1 Build #WS-145.597 for evaluation on OS X latest.

I want to use TypeScript but there is an immediate problem: I have enabled the TypeScript compiler in settings but in the Typescript Compiler tool window is complaining that it "Cannot start compiler process".

I've noticed that the build date on the WebStorm About box was yesterday (March 30 2016) so this may be a recently introduced issue.

Is anyone else having this problem? Anyone got an idea how to sort it?

like image 824
StuartF Avatar asked Jan 07 '23 08:01

StuartF


2 Answers

Setting the TypeScript compiler alone didn't solve this for IntelliJ IDEA 2016.2.1 on Linux. I had to go back through my older project that didn't have the problem to find the solution.

After setting up your typescript compiler below. TypeScript Compiler Settings

I then had to directly edit this same setting within my project's .idea directory. Within your project structure, navigate to your .idea directory then locate and open file typescript-compiler.xml like below. Direct Edit

Now add the following xml option element after the "useConfig" option element:

<option name="nodeInterpreterTextField" value="$PROJECT_DIR$/../../node/bin/node" />

Be sure to change the directory path to your instance of node.
Fixed

Sadly, this solution we be overridden every time you edit and save your settings. IDEA will have to fix their bug for a lasting solution.

like image 71
Heather92065 Avatar answered Jan 08 '23 22:01

Heather92065


I think you need to specify a node interpreter in the typescript settings:

enter image description here

like image 25
anstarovoyt Avatar answered Jan 08 '23 21:01

anstarovoyt