Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fix IntelliJ IDEA 2016 TypeScript Error, "Cannot start compiler process"

After setting up IntelliJ IDEA 2016.2.x with a TypeScript compiler, in my case Node v6.2.1, I get a TypeScript Project Error as follows:

"Error: Cannot start compiler process"

This started happening after IntelliJ was upgraded to 2016.2.x. Previous versions worked fine.

Here's how I setup the TypeScript compiler: enter image description here

Here's the error message: enter image description here

like image 477
Heather92065 Avatar asked Aug 17 '16 18:08

Heather92065


1 Answers

To fix this problem, directly edit the TypeScript configuration within the project's .idea directory. Within the 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 (make sure to use the path appropriate your node installation):

<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. Hopefully, IDEA will have a fix for this soon.

like image 81
Heather92065 Avatar answered Nov 12 '22 20:11

Heather92065