cpiock cpiock - 1 year ago 159
TypeScript Question

Strange Typescript build error with angular2 and webpack

I have integrated webpack in my existing working angular2 app starting with the webpack starter kit. 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"

Answer Source

Solved by removing typings files and folders.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download