【发布时间】:2016-08-04 21:10:24
【问题描述】:
使用 IntelliJ Idea 2016.2 我在编译使用
生成的 aurelia 项目时遇到了这个错误aurelia_project/generators/binding-behavior.ts(2,52): error TS2307: Cannot find module 'aurelia-cli'.
aurelia cli 显然在 node_modules 中用于本地和全局。给定该文件甚至应该编译的路径?也许应该忽略它?
如果我了解 tsconfig 和我的想法设置,甚至不应该构建这些
{
"compileOnSave": false,
"compilerOptions": {
"sourceMap": true,
"target": "es5",
"module": "amd",
"declaration": false,
"noImplicitAny": false,
"removeComments": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"moduleResolution": "node",
"lib": ["es2015", "dom"]
},
"exclude": [
"node_modules"
],
"filesGlob": [
"./src/**/*.ts",
"./test/**/*.ts",
"./typings/index.d.ts",
"./custom_typings/**/*.d.ts"
],
"atom": {
"rewriteTsconfig": false
}
}
au run --watch 开始正常
如何解决此问题,以便 Idea 可以无错误地构建项目?
【问题讨论】:
标签: intellij-idea typescript aurelia