Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rust142 opened this issue Apr 24, 2021 · 3 comments
Open

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

rust142 opened this issue Apr 24, 2021 · 3 comments

Comments

@rust142
Copy link

rust142 commented Apr 24, 2021

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
Copy link

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

@lachlanjc
Copy link
Owner

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants