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

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

Closed
andres221293 opened this issue Nov 1, 2017 · 8 comments
Labels
Stale There has been a lack of activity on this issue and it may be closed soon.

Comments

@andres221293
Copy link

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

@arefed-zz
Copy link

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

@rcastill
Copy link

rcastill commented Nov 1, 2017

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

@stlemon
Copy link

stlemon commented Nov 2, 2017

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

@rcastill
Copy link

rcastill commented Nov 2, 2017

Here is a temp solution:

react-navigation/react-navigation#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

@andres221293
Copy link
Author

@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?

@adrian-blas
Copy link

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

@mariobermudezjr
Copy link

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

@stale
Copy link

stale bot commented Jan 1, 2018

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.

@stale stale bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Jan 1, 2018
@stale stale bot closed this as completed Jan 8, 2018
@facebook facebook locked and limited conversation to collaborators May 15, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Stale There has been a lack of activity on this issue and it may be closed soon.
Projects
None yet
Development

No branches or pull requests

6 participants