How to fix IntelliJ IDEA 2016 TypeScript error "Unable to start compilation process"

After setting up IntelliJ IDEA 2016.2.x with the TypeScript compiler in my case, Node v6.2.1, I get a TypeScript project error like this:

"Error: cannot start compilation process

It started after IntelliJ was updated to 2016.2.x. Previous versions worked fine.

This is how I configure the TypeScript compiler: enter image description here

This is where the error message appears: enter image description here

+6
source share
2 answers

To resolve this issue, directly edit the TypeScript configuration in the .idea project directory. Within the project structure, go to the .idea directory, then find and open the typescript -compiler.xml file, as shown below. Direct editing

Now add the following xml option element after "useConfig" (be sure to use the path that matches your node installation):

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

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

Unfortunately, we redefine this solution every time you edit and save your settings. Hopefully IDEA will be fixed soon.

+5
source

First I ran:
npm install gulp - typescript typewriter --save-dev

Then I downloaded the version of WebStorm 2017.1.4 and reinstalled WebStorm.

After that, everything works fine.

0
source

All Articles