We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
When I run tsc, the compiler tells:
xxx/AppData/Roaming/npm/node_modules/typescript/lib/lib.es2015.iterable.d.ts:41:6 - error TS2300: Duplicate identifier 'IteratorResult'. 41 type IteratorResult<T, TReturn = any> = IteratorYieldResult | IteratorReturnResult; ~~~~~~~~~~~~~~ node_modules/@types/node/index.d.ts:165:11 165 interface IteratorResult { } ~~~~~~~~~~~~~~ 'IteratorResult' was also declared here.
xxx/AppData/Roaming/npm/node_modules/typescript/lib/lib.es2015.iterable.d.ts:41:6 - error TS2300: Duplicate identifier 'IteratorResult'.
41 type IteratorResult<T, TReturn = any> = IteratorYieldResult | IteratorReturnResult; ~~~~~~~~~~~~~~
node_modules/@types/node/index.d.ts:165:11 165 interface IteratorResult { } ~~~~~~~~~~~~~~ 'IteratorResult' was also declared here.
And my tsconfig.json is:
{ "exclude": [ "node_modules/@types/node/index.d.ts" ], "compilerOptions": { "target": "es5", "module": "commonjs", "lib": ["es6"], "strict": true, "esModuleInterop": true } }
Typescript version is 3.7.2
The "exclude" in tsconfig.json makes no difference.
When I run tsc, the compiler tells:
And my tsconfig.json is:
Typescript version is 3.7.2
The "exclude" in tsconfig.json makes no difference.