[英]run the beta TypeScript compiler for Angular2 in Intellij Idea
I follow the angular (2.0) tutorial and I run the following commands : 我按照angular (2.0)教程运行以下命令:
npm install -g typescript@^1.5.0-beta
But in Intellij Idea the TypeScript compiler do not work correctly 但在Intellij Idea中,TypeScript编译器无法正常工作
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 solutions for the moment is to run manually:
我目前唯一的解决方案是手动运行:
tsc --watch -m commonjs -t es5 --emitDecoratorMetadata app.ts
So my question : 所以我的问题:
Is there a solution to run the beta TypeScript compiler for Angular2 in Intellij Idea ? 是否有解决方案在Intellij Idea中为Angular2运行beta TypeScript编译器?
I had to add my custom compiler version to IntelliJ in this location: 我必须在这个位置将我的自定义编译器版本添加到IntelliJ:
C:\Program Files (x86)\nodejs\node_modules\typescript\bin
along with the command line options --module commonjs -t es5 --emitDecoratorMetadata
. 以及命令行选项
--module commonjs -t es5 --emitDecoratorMetadata
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.