2016-01-20 69 views
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:

enter image description here

知道是否有一種方法,使Webstorm是的WebPack和NG2意識到使用打字稿...

TX

肖恩

+2

嘗試'「./src/Conts」' – Langley

+0

tx的答覆...它只是固定在WebStorm最新的EA ...關於 – born2net

回答

1

TX的答覆......這只是固定在WebStorm最新的EA ...版本144.3143.5關於