supercons icon indicating copy to clipboard operation
supercons copied to clipboard

Could not find a declaration file for module 'supercons'.

Open rust142 opened this issue 3 years ago • 3 comments

Could not find a declaration file for module 'supercons'. 'node_modules/supercons/dist/index.js' implicitly has an 'any' type. Try npm i --save-dev @types/supercons if it exists or add a new declaration (.d.ts) file containing declare module 'supercons';

rust142 avatar Apr 24 '21 07:04 rust142

I have this same issue; build processes are failing due to this.

henrikvtcodes avatar Sep 12 '21 06:09 henrikvtcodes

Ugh, sorry about this! If anyone wants to take a look at why this is happening, would be much appreciated. It seems like some configuration property might not be exposed correctly pointing to the types.

lachlanjc avatar Sep 15 '21 21:09 lachlanjc

I did find a hacky workaround by just adding a global.d.ts file in the root of my app and adding

declare module 'supercons'

However, all that does is make the typescript compiler ignore the problem. I might try my hand at fixing although I am far from a typescript expert.

henrikvtcodes avatar Sep 16 '21 01:09 henrikvtcodes