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

Error TS2307: Cannot find module './types.d' or its corresponding type declarations. #34

Open
tomika opened this issue Apr 7, 2022 · 1 comment

Comments

@tomika
Copy link

tomika commented Apr 7, 2022

I tried to follow instructions but when I try to build my typescipt project I get an error:

...node_modules/color-calendar/dist/index.d.ts(1,141): Error TS2307: Cannot find module './types.d' or its corresponding type declarations.

Please help.

Best Regards,
Tom

@tomika
Copy link
Author

tomika commented Apr 7, 2022

With 2 modifications I successfully made it to work:
I had to import it as

import * as Calendar from "color-calendar";

not

import Calendar from "color-calendar";

as documented and had to remove non existing types.d.ts reference from color-calendars package.json

It seems to me that current npm package (and/or documentation) needs to be fixed.

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

1 participant