React-Native: Error: undefined is not a function (evaluating \'text[typeof Symbol === \'function\' ? Symbol.iterator : \'@@iterator\']()\')
See original GitHub issueHi, i’m using this lib in a ReactNative App and methods parse
and format
catch this error:
Error: undefined is not a function (evaluating \'text[typeof Symbol === \'function\' ? Symbol.iterator : \'@@iterator\']()\') drop_and_substitute_characters
....
How i’m using lib:
import { parse, format } from 'libphonenumber-js'
let p = parse('8 (800) 555 35 35', 'RU')
console.log(p)
Installed from: npm install libphonenumber-js
I’m doing something wrong? Thanks!
Issue Analytics
- State:
- Created 5 years ago
- Comments:14 (8 by maintainers)
Top Results From Across the Web
undefined is not a function(evaluating '_iterator[typeof Symbol ...
I used "for(let...of...){}" to traverse a Map object at react-native,I got this error. it's working perfectly for IOS and android debug ...
Read more >React native [TypeError: undefined is not an object (evaluating ...
[TypeError: undefined is not an object (evaluating 'iter[Symbol.iterator]')]. This is how my code looks like this is the App file
Read more >React Native & React navigation: undefined is not an object ...
A strange issue comes out in React Native 0.57.7 using React Navigation ... undefined is not an object evaluating '_iterator[typeof Symbol ...
Read more >Iteration protocols - JavaScript - MDN Web Docs
A function that accepts zero or one argument and returns an object conforming to the IteratorResult interface (see below). If a non-object value ......
Read more >The 10 Most Common JavaScript Issues Developers Face
Executing the above code results in the following error: Uncaught TypeError: undefined is not a function. Why? It's all about context.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I found a workaround here https://github.com/facebook/react-native/issues/15902#issuecomment-375521246. It seems to work!
@catamphetamine
v1.1.6
works without any workaround! Thanks!