[英]How to configure WebStom with Webpack for Angular2 (cannot find module)?
I am using WebStorm and webpack and since my tsconfig is set to node_modules, WebStorm does not recongnize the paths for any of my modules and thus the TypeScript that is bundled with WebStorm emits errors as you can see in my attachments... 我正在使用WebStorm和webpack,并且由于我的tsconfig设置为node_modules,因此WebStorm不会为我的任何模块重新确认路径,因此与WebStorm捆绑在一起的TypeScript会发出错误,如附件所示。
tsconfig.json 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
}
Errors in Webstorm: Webstorm中的错误:
wondering if there is a way to make Webstorm be Webpack and ng2 aware using TypeScript... 想知道是否有办法使用TypeScript使Webstorm成为Webpack和ng2感知...
TX 德克萨斯州
Sean 肖恩
tx的答复...它只是在WebStorm最新的EA中修复的...版本144.3143.5的问候
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.