Anjali agarwal

Anjali agarwal

  • NA
  • 189
  • 3.4k

error coming in index.d.ts

Apr 15 2021 7:21 PM
I am trying to compile my angular application and getting these three errors. This error suddenly started coming, I didnt upgrade or downgrade anything in angular. below errors are coming in
index.d.ts and lib.2015.iterable.d.ts file
Duplicate identifier 'IteratorResult
Import declaration conflicts with local declaration of 'PluginConfig'
Import declaration conflicts with local declaration of 'ProtractorPlugin'
after seeing this(TypeScript: Duplicate identifier 'IteratorResult') post, I tried to upgrade @types/node using the command
npm install --save-dev @types/node
upgrading @types/node did not resolve my issue. I am still getting below error and other errors
Duplicate identifier 'IteratorResult error
Below is my tsconfig.json file:
{
"compileOnSave": false,
"compilerOptions": {
//"outDir": "./dist/out-tsc",
"outDir": "../Bundles",
"skipLibCheck": true,
"sourceMap": true,
"declaration": false,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es5",
"typeRoots": [
"node_modules/@types"
],
"lib": [
"es2017",
"dom"
]
},
"angularCompilerOptions": {
"fullTemplateTypeCheck": true,
"strictInjectionParameters": true
}
}
Below is my package.json file
{
"name": "frontend",
"version": "0.0.0",
"license": "MIT",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build --prod",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
"private": true,
"dependencies": {
"@angular/animations": "^5.2.4",
"@angular/cdk": "^5.2.1",
"@angular/common": "^5.2.0",
"@angular/compiler": "^5.2.0",
"@angular/core": "^5.2.0",
"@angular/flex-layout": "^5.0.0-beta.14",
"@angular/forms": "^5.2.0",
"@angular/http": "^5.2.0",
"@angular/material": "^5.2.1",
"@angular/platform-browser": "^5.2.0",
"@angular/platform-browser-dynamic": "^5.2.0",
"@angular/router": "^5.2.0",
"ajv": "^6.0.0",
"angular2-text-mask": "^9.0.0",
"angular5-time-picker": "^1.0.8",
"bootstrap": "4.3.1",
"core-js": "^2.4.1",
"font-awesome": "^4.7.0",
"jquery": "^1.9.1",
"ngx-mask": "^2.9.6",
"popper.js": "^1.12.9",
"rxjs": "^5.5.6",
"text-mask-addons": "^3.7.2",
"zone.js": "^0.8.19"
},
"devDependencies": {
"@angular/cli": "1.6.7",
"@angular/compiler-cli": "^5.2.0",
"@angular/language-service": "^5.2.0",
"@types/jasmine": "~2.8.3",
"@types/jasminewd2": "~2.0.2",
"@types/node": "^14.14.40",
"codelyzer": "^4.0.1",
"jasmine-core": "~2.8.0",
"jasmine-spec-reporter": "~4.2.1",
"karma": "^2.0.4",
"karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "^1.2.1",
"karma-jasmine": "~1.1.0",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "^5.3.2",
"ts-node": "~4.1.0",
"tslint": "~5.9.1",
"typescript": "~2.5.3"
}
}
any help will be greatly appreciated.

Answers (3)