I've integrated JointJs into my Angular CLI project, but I'm encountering typing errors during the build process:
https://i.sstatic.net/3ihS3.png
The error messages point to the file
node_modules/jointjs/types/joinjs.d.ts
, which is not the correct file needed. The correct one should be located in the dist
folder at node_modules/jointjs/dist/jointjs.d.ts
. It appears that the correct file is being included among other messages about it.
All I'm looking for is a way to exclude
node_modules/jointjs/types/joinjs.d.ts
to eliminate these errors.
Is there a method to exclude a specific typings file from the project?
I am attempting to make JointJs 2.1.0 compatible with Angular 6 and Angular CLI 6.
Any assistance on this matter would be greatly appreciated!
UPDATE:
I have tried adding the types folder to the exclude
section of both my tsconfig.json and tsconfig.app.ts files:
"exclude": [
"node_modules/jointjs/types/*"
]
and also specifying the individual files to be excluded:
"exclude": [
"node_modules/jointjs/types/geometry.d.ts",
"node_modules/jointjs/types/vectorizer.d.ts",
"node_modules/jointjs/types/joint.d.ts",
"node_modules/jointjs/types/joint.head.d.ts"
]
...with the hope that these files would be hidden from the compiler, but the same errors persist.