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

Broken exports in libphonenumber-js/max #426

Open
Dylan-Floyd opened this issue Jun 29, 2022 · 2 comments
Open

Broken exports in libphonenumber-js/max #426

Dylan-Floyd opened this issue Jun 29, 2022 · 2 comments

Comments

@Dylan-Floyd
Copy link

Hello, I don't have time to investigate the cause thoroughly at the moment, but the changes in 1.10.x seem to have broken exports. I can't import parsePhoneNumber or parsePhoneNumberWithError in a Create React App (esm I believe), I get "TypeError: parsePhoneNumberWithError is not a function". This was happening on 1.10.7 specifically, and the problem doesn't happen with 1.9.x.

I'll try to provide more detailed info tonight.

@Dylan-Floyd
Copy link
Author

And specifically the issue was in a dependency of the Create React App that I control. So our CRA app imports the dependency, and the dependency imports parsePhoneNumberWithError. The dependency uses CJS.

Not sure if this is relevant, but I wanted to include it just in case

@catamphetamine
Copy link
Owner

catamphetamine commented Jun 30, 2022 via email

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