我正在使用带有webpack的angular 2并在我运行webpack观察者时设置我的项目给出了Duplicate identifier
错误:
ERROR in [default] /angular/typings/globals/node/index.d.ts:370:8 Duplicate identifier 'unescape'.
ERROR in [default] /angular/typings/globals/node/index.d.ts:371:8 Duplicate identifier 'gc'.
ERROR in [default] /angular/typings/globals/node/index.d.ts:372:8 Duplicate identifier 'v8debug'.
ERROR in [default] /angular/typings/globals/node/index.d.ts:446:25 Duplicate identifier 'Buffer'.
以下是我的typings.json文件:
{
"name": "angular2",
"version": false,
"dependencies": {},
"globalDependencies": {
"es6-collections": "registry:dt/es6-collections#0.5.1+20160316155526",
"es6-promise": "registry:dt/es6-promise#0.0.0+20160423074304",
"node": "registry:dt/node#4.0.0+20160423143914"
}
}
答案 0 :(得分:0)
您无需手动添加node
类型。