question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

React-Native: Error: undefined is not a function (evaluating \'text[typeof Symbol === \'function\' ? Symbol.iterator : \'@@iterator\']()\')

See original GitHub issue

Hi, 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:closed
  • Created 5 years ago
  • Comments:14 (8 by maintainers)

github_iconTop GitHub Comments

4reactions
edolixcommented, Mar 28, 2018
2reactions
edolixcommented, Mar 30, 2018

@catamphetamine v1.1.6 works without any workaround! Thanks!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found