Angular2 베타 15 버전을 RC 버전으로 변경했는데 응용 프로그램을 실행할 때 오류가 발생했습니다.
typings/browser/ambient/es6-shim/index.d.ts(8,14): error TS2300: Duplicate identifier 'PropertyKey'.
typings/browser/ambient/es6-shim/index.d.ts(11,5): error TS2300: Duplicate identifier 'done'.
typings/browser/ambient/es6-shim/index.d.ts(12,5): error TS2300: Duplicate identifier 'value'.
typings/browser/ambient/es6-shim/index.d.ts(250,5): error TS2300: Duplicate identifier 'EPSILON'.
typings/browser/ambient/es6-shim/index.d.ts(285,5): error TS2300: Duplicate identifier 'MAX_SAFE_INTEGER'.
typings/browser/ambient/es6-shim/index.d.ts(292,5): error TS2300: Duplicate identifier 'MIN_SAFE_INTEGER'.
typings/browser/ambient/es6-shim/index.d.ts(348,5): error TS2300: Duplicate identifier 'flags'.
typings/browser/ambient/es6-shim/index.d.ts(500,5): error TS2300: Duplicate identifier 'prototype'.
typings/browser/ambient/es6-shim/index.d.ts(563,5): error TS2300: Duplicate identifier 'size'.
typings/browser/ambient/es6-shim/index.d.ts(572,5): error TS2300: Duplicate identifier 'prototype'.
typings/browser/ambient/es6-shim/index.d.ts(583,5): error TS2300: Duplicate identifier 'size'.
typings/browser/ambient/es6-shim/index.d.ts(592,5): error TS2300: Duplicate identifier 'prototype'.
typings/browser/ambient/es6-shim/index.d.ts(607,5): error TS2300: Duplicate identifier 'prototype'.
typings/browser/ambient/es6-shim/index.d.ts(621,5): error TS2300: Duplicate identifier 'prototype'.
typings/globals/core-js/index.d.ts(3,14): error TS2300: Duplicate identifier 'PropertyKey'.
typings/globals/core-js/index.d.ts(217,5): error TS2300: Duplicate identifier 'flags'.
typings/globals/core-js/index.d.ts(231,5): error TS2300: Duplicate identifier 'EPSILON'.
typings/globals/core-js/index.d.ts(266,5): error TS2300: Duplicate identifier 'MAX_SAFE_INTEGER'.
typings/globals/core-js/index.d.ts(273,5): error TS2300: Duplicate identifier 'MIN_SAFE_INTEGER'.
typings/globals/core-js/index.d.ts(583,5): error TS2300: Duplicate identifier 'size'.
typings/globals/core-js/index.d.ts(589,5): error TS2300: Duplicate identifier 'prototype'.
typings/globals/core-js/index.d.ts(600,5): error TS2300: Duplicate identifier 'size'.
typings/globals/core-js/index.d.ts(606,5): error TS2300: Duplicate identifier 'prototype'.
typings/globals/core-js/index.d.ts(621,5): error TS2300: Duplicate identifier 'prototype'.
typings/globals/core-js/index.d.ts(635,5): error TS2300: Duplicate identifier 'prototype'.
typings/globals/core-js/index.d.ts(646,5): error TS2300: Duplicate identifier 'done'.
typings/globals/core-js/index.d.ts(647,5): error TS2300: Duplicate identifier 'value'.
typings/globals/core-js/index.d.ts(759,5): error TS2300: Duplicate identifier 'prototype'.
이 문제를 해결하는 방법을 찾는 데 도움을 줄 수 있습니까? 저는 Angular2의 멍청이입니다.
내 json 파일 typings.json
은 다음과 같습니다.
{
"ambientDependencies": {
"es6-shim": "github:DefinitelyTyped/DefinitelyTyped/es6-shim/es6-shim.d.ts#7de6c3dd94feaeb21f20054b9f30d5dabc5efabd"
}
}
귀하의 typings.json
파일은 사용되지 않는 구문을 사용하고 있습니다 : 그것은 사용하고 ambientDependencies
대신 globalDependencies
. 또한 Angular RC는 es6-shim
더 이상 사용하지 않습니다 .
타이핑 폴더를 제거 typings.json
하고 파일을 업데이트 한 다음 다시 설치하십시오.
typings.json
다음과 같이 업데이트하십시오 .
{
"globalDependencies": {
"core-js": "registry:dt/core-js#0.0.0+20160602141332",
"jasmine": "registry:dt/jasmine#2.2.0+20160621224255",
"node": "registry:dt/node#6.0.0+20160621231320"
}
}
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다