[英]Strange Typescript build error with angular2 and webpack
I have integrated webpack in my existing working angular2 app starting with the webpack starter kit. 从webpack入门工具包开始,我已经将webpack集成到了现有的angular2应用程序中。 But now if I run the build with
但是现在如果我用
npm run build:dev
I recive this and many other similar errors: 我提到了这个以及其他许多类似的错误:
ERROR in [default] C\node_modules\@types\node\index.d.ts:102:5
Duplicate identifier 'BufferEncoding'.
What I have duplicated? 我复制了什么? Is it why I have included this typings file:
这就是为什么我包含此类型文件的原因:
"globalDependencies": {
"core-js": "registry:dt/core-js#0.0.0+20160725163759",
"jasmine": "registry:dt/jasmine#2.2.0+20160621224255",
"node": "registry:dt/node#6.0.0+20160909174046"
}
}
通过删除打字文件和文件夹来解决。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.