You must be logged in to post your query.
Home › Forums › Chart Support › Could not find a declaration file for module ‘./canvasjs.min’.
Tagged: Could not find a declaration file for module './canvasjs.min'.
I have placed my canvasjs.min.js in the same directory as my component class, as done in the sample project with angular 8. This error shows: Could not find a declaration file for module ‘./canvasjs.min’. ‘/src/app/canvasjs.min.js’ implicitly has an ‘any’ type.ts(7016)
My project: https://1drv.ms/u/s!AmdFvesXZt7JkVCyK6OmbY4La56o?e=U4SmHj
this worked for me: https://amandeepkochhar.medium.com/typescript-error-could-not-find-a-declaration-file-for-module-xyz-dfbe6e45c2bd
@josefinanoya,
Glad that you figured it out. Adding "noImplicitAny": false, inside the compilerOptions in TypeScript Config file(tsconfig.json) seems to be working fine.
"noImplicitAny": false,
compilerOptions
—- Manoj Mohan Team CanvasJS
You must be logged in to reply to this topic. Login/Register