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

Cannot find module "@date-io/type" #372

Closed
harishvalluru05 opened this issue May 21, 2020 · 2 comments · Fixed by #657 · May be fixed by #416
Closed

Cannot find module "@date-io/type" #372

harishvalluru05 opened this issue May 21, 2020 · 2 comments · Fixed by #657 · May be fixed by #416

Comments

@harishvalluru05
Copy link

  1. We used @material-ui/pickers in one project and created distribution(dist) folder/created a package for the project.

  2. when we try to use this package version in another project it is throwing an error Cannot find module "@date-io/type".

Actually we are facing this issue when we are handling with distribution(dist) folder, But in the same project it is working fine.

Observation:
We identified that "@date-io/type" is a ambient module which is forcing us to include in
distribution folder which is not correct.

Please suggest

@dmtrKovalenko
Copy link
Owner

You can create your own declaration using declare module

@dmtrKovalenko
Copy link
Owner

We are removing @date-io/type at all

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