lachlanjc / supercons

A friendly, open source React iconset
https://supercons.vercel.app
BSD 3-Clause "New" or "Revised" License
190 stars 8 forks source link

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

Open rust142 opened 3 years ago

rust142 commented 3 years ago

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';

henrikvtcodes commented 3 years ago

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

lachlanjc commented 3 years ago

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.

henrikvtcodes commented 3 years ago

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.