lachlanjc/supercons

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

Opened this issue · 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';

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

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.

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.