IntelliJ打字稿参考路径Aren的相对

时间:2015-07-30 18:04:24

标签: javascript intellij-idea typescript gulp webstorm

我使用IntelliJ作为我的IDE,但我想使用gulp-typescript来编译我的打字稿。问题是,IntelliJ没有相对地处理我的引用路径,而是从我的app根目录处理,这意味着我可以获得对IntelliJ或编译器工作的引用,但不能同时处理两者。

enter image description here

此文件位于app/components/my-module/my-module.module.js,其中定义位于app/definitions/tsd.d.ts。如何解决这个问题,让每个人都满意呢?

1 个答案:

答案 0 :(得分:0)

我使用的是IntelliJ 13.升级到IntelliJ 14后,引用被视为相对路径。