-
Notifications
You must be signed in to change notification settings - Fork 213
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
React-Native: Error: undefined is not a function (evaluating \'text[typeof Symbol === \'function\' ? Symbol.iterator : \'@@iterator\']()\') #198
Comments
Seems that |
You can try using |
Or, actually, my previous comment was incorrect: the |
@catamphetamine thanks for the quick reply!
|
Is the package updated on |
Yeah, seems that you're not in a full ES6 environment. |
What do you mean? |
I'm on ReactNative but it seems that |
Well, I could look into a way of polyfilling symbol iterator somehow. |
I found a workaround here facebook/react-native#15902 (comment). |
@edolix Yeah, that's one way to do it, and actually it's better in a sense that other libraries relying on Symbol don't break. The other thing is that I found a way to bypass |
CC @sachinB94 @m-hosoi ^^^^^^^ |
SUPER! I'll try it tomorrow for sure 👍 @catamphetamine thanks again for your help! |
@catamphetamine |
Hi, i'm using this lib in a ReactNative App and methods
parse
andformat
catch this error:How i'm using lib:
Installed from:
npm install libphonenumber-js
I'm doing something wrong?
Thanks!
The text was updated successfully, but these errors were encountered: