React-native: undefined is not a function (evaluating 'arr[typeOf Symbol === 'function'? Symbol.iterator:'@@iterator']()')

Created on 1 Nov 2017  Â·  8Comments  Â·  Source: facebook/react-native

Is this a bug report?

(yes)

Have you read the Contributing Guidelines?

(no)

Environment

Environment:
OS: macOS Sierra 10.12.6
Node: 6.11.2
Yarn: 0.27.5
npm: 5.5.1
Watchman: 4.7.0
Xcode: Xcode 8.3.3 Build version 8E3004b
Android Studio: 3 AI-171.4408382

Packages: (wanted => installed)
react-native: 0.44.2 => 0.44.2
react: 16.0.0-alpha.6 => 16.0.0-alpha.6

Target Platform: iOS (11)

Steps to Reproduce

1.create a project react native with version 0.44.2 and install the ReactNavigation
2.then configure the StackNavigator as described by the official ReactNavigation website and that's when I got this error.
3.The funny thing that when I activate the debug the application works correctly

Expected Behavior

(I expected it to work the same as the Debug that did not leave said error)

Actual Behavior


screenshot_20171101-141804

Stale

Most helpful comment

Same here! it happened after I cleaned my project's cache. Really bad timing D:

Any help is appreciated.

photo_2017-11-01_20-37-14

All 8 comments

I am having the same issue with drawer navigation! any help here?
react-native-issue

Same here! it happened after I cleaned my project's cache. Really bad timing D:

Any help is appreciated.

photo_2017-11-01_20-37-14

same here! but in Android.how to solve it?

Here is a temp solution:

https://github.com/react-community/react-navigation/issues/2853

_tl;dr_ change package.json dependency:

"react-navigation": "git+https://github.com/react-community/react-navigation.git#ed2fc9a09e2f562ae9d3fc7f5df17c593989db0a"

to make sure run npm remove react-navigation && npm install

@rcastill replaced "react-navigation": "^1.0.0-beta.16" for "react-navigation": "git+https://github.com/react-community/react-navigation.git#ed2fc9a09e2f562ae9d3fc7f5df17c593989db0a"?

after npm remove react-navigation && npm install?

I had the same problem, just do it next:

1.- npm remove react-navigation
2.- npm install

Start project:
3.- react-native start -- --reset-cache

When trying to open app it will show an error with react-navigation dependence, so then will reinstall the dependence and will resolved:

4.- npm install --save react-navigation

undefined is not a function (evaluating ‘arrtypeofSymbol === “function” ? Symboliterator : “@@iterator”)

Error turned out to be a package problem with "react-navigation": "^1.0.0-beta.16”, and used
"react-navigation": "^1.0.0-beta.15 instead.

This solved the problem stated above. Thank you all!! :D

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. If you think this issue should definitely remain open, please let us know why. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings