Trying to build an Angular app I am getting complie errors for typescript files in the node_modules folder.
For example:
TS2420: Class 'CdkTable' incorrectly implements interface 'CollectionViewer'.
CdkTable is in @angular/cdk/typings/table/table.d.ts
Version of my tools:
npm -v: 5.0.3
node -v: v8.1.4
tsc -v: Version 2.2.3
My tsconfig.json:
{
"compilerOptions": {
"moduleResolution": "node",
"target": "es5",
"sourceMap": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"skipDefaultLibCheck": true,
"lib": [ "es6", "dom" ],
"types": [ "node" ]
},
"exclude": [ "bin", "node_modules" ],
"atom": { "rewriteTsconfig": false }
}
Note that the project is compileable on other computers.