I've got jasmine
, jasminewd2
and mocha
in my Angular project. Those libs have index.d.ts
files which seems to be duplicated. Is it some way to avoid this error? Since my Visual Studio cannot build it. I was already trying to exclude those files in my tsconfig.json
file, upgrading version ain't helping as well.
6>C:\GIT\proj\node_modules\@types\jasmine\index.d.ts(20,18): error TS2300: Build:Duplicate identifier 'describe'.
6>C:\GIT\proj\node_modules\@types\jasmine\index.d.ts(22,18): error TS2300: Build:Duplicate identifier 'xdescribe'.
6>C:\GIT\proj\node_modules\@types\jasmine\index.d.ts(31,18): error TS2300: Build:Duplicate identifier 'it'.
6>C:\GIT\proj\node_modules\@types\jasmine\index.d.ts(41,18): error TS2300: Build:Duplicate identifier 'xit'.
6>C:\GIT\proj\node_modules\@types\jasminewd2\index.d.ts(10,18): error TS2300: Build:Duplicate identifier 'it'.
6>C:\GIT\proj\node_modules\@types\jasminewd2\index.d.ts(12,18): error TS2300: Build:Duplicate identifier 'xit'.
6>C:\GIT\proj\node_modules\@types\mocha\index.d.ts(36,13): error TS2300: Build:Duplicate identifier 'describe'.
6>C:\GIT\proj\node_modules\@types\mocha\index.d.ts(37,13): error TS2300: Build:Duplicate identifier 'xdescribe'.
6>C:\GIT\proj\node_modules\@types\mocha\index.d.ts(42,13): error TS2300: Build:Duplicate identifier 'it'.
6>C:\GIT\proj\node_modules\@types\mocha\index.d.ts(43,13): error TS2300: Build:Duplicate identifier 'xit'.
6>C:\GIT\proj\node_modules\@types\jasmine\index.d.ts(20,18): error TS2300: Build:Duplicate identifier 'describe'.
6>C:\GIT\proj\node_modules\@types\jasmine\index.d.ts(22,18): error TS2300: Build:Duplicate identifier 'xdescribe'.
6>C:\GIT\proj\node_modules\@types\jasmine\index.d.ts(31,18): error TS2300: Build:Duplicate identifier 'it'.
6>C:\GIT\proj\node_modules\@types\jasmine\index.d.ts(41,18): error TS2300: Build:Duplicate identifier 'xit'.
6>C:\GIT\proj\node_modules\@types\jasminewd2\index.d.ts(10,18): error TS2300: Build:Duplicate identifier 'it'.
6>C:\GIT\proj\node_modules\@types\jasminewd2\index.d.ts(12,18): error TS2300: Build:Duplicate identifier 'xit'.
6>C:\GIT\proj\node_modules\@types\mocha\index.d.ts(36,13): error TS2300: Build:Duplicate identifier 'describe'.
6>C:\GIT\proj\node_modules\@types\mocha\index.d.ts(37,13): error TS2300: Build:Duplicate identifier 'xdescribe'.
6>C:\GIT\proj\node_modules\@types\mocha\index.d.ts(42,13): error TS2300: Build:Duplicate identifier 'it'.
6>C:\GIT\proj\node_modules\@types\mocha\index.d.ts(43,13): error TS2300: Build:Duplicate identifier 'xit'.
Thanks to JimiPajala we have solution.
I've added "skipLibCheck": true,
to tsconfig.json
Regarding to documentation: "Skip type checking of all declaration files (.d.ts).*" https://www.typescriptlang.org/docs/handbook/compiler-options.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With