In a similar vein I was having issues with node_modules exclusion.
Here’s a heavy handed solution, that ignores all *.d.ts files.
I added to compilerOptions:
"compilerOptions": {
"skipLibCheck": true,
...
}
Related:
- https://www.typescriptlang.org/tsconfig#compilerOptions