[英]IntelliJ Typescript Reference Paths Aren't Relative
I'm using IntelliJ as my IDE but I want to use gulp-typescript
to compile my typescript. 我使用IntelliJ作为我的IDE,但是我想使用
gulp-typescript
来编译我的打字稿。 The issue is, IntelliJ is not treating my reference paths relatively but from my app root, meaning I can get references to work for either IntelliJ or the Compiler but not both. 问题是,IntelliJ不会相对地处理我的引用路径,而是从我的应用程序根目录处理,这意味着我可以获取对IntelliJ或编译器有效的引用,但不能同时用于两者。
This file is in app/components/my-module/my-module.module.js
where the definition is in app/definitions/tsd.d.ts
. 该文件位于
app/components/my-module/my-module.module.js
,其中定义位于app/definitions/tsd.d.ts
。 How do I resolve this to where everyone is happy? 我该如何解决每个人都感到高兴的地方?
我使用的是IntelliJ13。升级到IntelliJ 14后,引用被视为相对路径。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.