0
我使用WebStorm和webpack,並且由於我的tsconfig設置爲node_modules,WebStorm沒有識別我的任何模塊的路徑,因此也沒有綁定到TypeScript WebStorm發出的錯誤,你可以在我的附件看到...如何使用Webpack for Angular2配置WebStom(找不到模塊)
tsconfig.json
{
"compilerOptions": {
"target": "ES5",
"module": "commonjs",
"moduleResolution": "node",
"removeComments": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"noEmitHelpers": false,
"sourceMap": true,
"noResolve": false
},
"filesGlob": [
"./**/*.ts",
"!./node_modules"
],
"exclude": [
"node_modules",
"typings"
],
"compileOnSave": true,
"buildOnSave": true
}
錯誤在Webstorm:
知道是否有一種方法,使Webstorm是的WebPack和NG2意識到使用打字稿...
TX
肖恩
嘗試'「./src/Conts」' – Langley
tx的答覆...它只是固定在WebStorm最新的EA ...關於 – born2net