我使用的IntelliJ IDEA 2017年2月4日制定角度(4个不是JS)应用程序。一切正常,运行良好,但IntelliJ标记所有@angular
导入TypeScript文件与红色的波浪状。角的打字稿的IntelliJ进口标有抽搐
的错误消息是TS2307: Cannot find module '@nagular/abc'
存在Jetbrain的支持Typescript does not resolve modules through tsconfig.json's baseUrl
这是我tsconfig.json文件还发出打开。
请注意,tsconfig.json文件存储不在项目的根,但./app/ui目录 - 如果该事项。
{
"compilerOptions": {
"alwaysStrict": true,
"noImplicitReturns": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"module": "system",
"target": "es5",
"removeComments": true,
"suppressImplicitAnyIndexErrors": true,
"outDir": "generated",
"inlineSourceMap": true,
"importHelpers": true,
"baseUrl": ".",
"paths": {
"tslib": [
"../../node_modules/tslib/tslib.d.ts"
]
},
"skipLibCheck": true,
"downlevelIteration": true
},
"exclude": [
"lib"
]
}
这可能是的IntelliJ期待在'tsconfig.json' –
当你将鼠标悬停在进口的红线它说什么了定义的代码风格? –
我已经添加了错误信息 –