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

Module not found: Error: Package path ./modules/CountryIcon #420

Open
pduey opened this issue Nov 29, 2022 · 1 comment
Open

Module not found: Error: Package path ./modules/CountryIcon #420

pduey opened this issue Nov 29, 2022 · 1 comment

Comments

@pduey
Copy link

pduey commented Nov 29, 2022

After upgrading from version 3.1.53 to version 3.2.0 we start receiving this error:

Module not found: Error: Package path ./modules/CountryIcon is not exported from package .../node_modules/react-phone-number-input (see exports field in .../node_modules/react-phone-number-input/package.json)

I went through the README and couldn't find any instructions that would seem to fix this. I guess this is just me, since nobody has reported the issue and we're already up to v 3.2.12. Apologies if this is not an issue and just a request for help.

@catamphetamine
Copy link
Owner

Depends on what path are you importing in your app.
If you're importing CountryIcon component from react-phone-number-input/modules/CountryIcon then that wasn't a documented feature.
Version 3.2.0 introduced a new package export system.

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

2 participants