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

Vite react issue #130 #12

Open
nerijusgood opened this issue May 11, 2022 · 3 comments
Open

Vite react issue #130 #12

nerijusgood opened this issue May 11, 2022 · 3 comments

Comments

@nerijusgood
Copy link

Using viteJs after build and compression package always triggers:

instrument.js:109 Error: Minified React error #130; visit https://reactjs.org/docs/error-decoder.html?invariant=130&args[]=object&args[]= for the full message or use the non-minified dev environment for full errors and additional helpful warnings.

@harish-everest
Copy link
Owner

Did you verify that the build is passing after removing this package from your app?

@Bramvanosta
Copy link

Bramvanosta commented Jul 21, 2022

I had the same issue using Vite. I found a comment on an issue on the original package which fixed it for me:

import _PhoneInput from 'react-phone-input-material-ui';

export const PhoneInput = (_PhoneInput as any).default
  ? ((_PhoneInput as any).default as typeof _PhoneInput)
  : _PhoneInput;

There is an open PR as well which supposedly fixes the issue but I haven't tested it.

@harish-everest
Copy link
Owner

harish-everest commented Jul 26, 2022

Thanks @Bramvanosta.

@nerijusgood please use this workaround till I test the fix.

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