Run Beta TypeScript for Angular2 in Intellij Idea

I am following angular (2.0) tutorial and I am running the following commands:

npm install -g typescript@^1.5.0-beta

      

But in Intellij Idea the TypeScript compiler is not working correctly

enter image description here

So, in the command line options, I try to add

-m commonjs -t es5 --emitDecoratorMetadata

      

or

--target es5

      

But I have the same problem. My only solution at the moment is to manually run:

tsc --watch -m commonjs -t es5 --emitDecoratorMetadata app.ts

      

So my question is:

Is there a solution to run a beta TypeScript for Angular2 in Intellij Idea?

+3


source to share


1 answer


I had to add my own version of the compiler to IntelliJ at this point:

C:\Program Files (x86)\nodejs\node_modules\typescript\bin

      



along with command line parameters --module commonjs -t es5 --emitDecoratorMetadata

.

+3


source







All Articles