react-navigation icon indicating copy to clipboard operation
react-navigation copied to clipboard

RN 42 - Expected array with count 16, but count is 2

Open fabriciovergara opened this issue 9 years ago • 24 comments

Trying to integrate React-Navigation with RN42 project. When I add any navigator the apps stop due to this error:

simulator screen shot 2 mar 2017 18 24 44

fabriciovergara avatar Mar 02 '17 17:03 fabriciovergara

@fabriciovergal I also have the same issue after upgrading RN to 0.42, but that is even before integrating react-navigation. Just curious, are you using react-native-router-flux at all? I ask because I am using it, and it might be from it but I am not 100% sure.

Also, please let us know if you figure out what it is :)

MovingGifts avatar Mar 03 '17 00:03 MovingGifts

No, react-navigation is the only navigation lib in my boilerplate project.

fabriciovergara avatar Mar 03 '17 12:03 fabriciovergara

@MovingGifts Same issue, I'm using react-native-router-flux and when not using it the error disappears.

abeauvois avatar Mar 03 '17 13:03 abeauvois

I can confirm that it happens on 0.42.0 and above. Hopefully we can get it working for the next release.

grabbou avatar Mar 03 '17 15:03 grabbou

@abeauvois We'll just have to wait until grabbou gets it to work with his team. @grabbou did you mean next release of RN as in 0.43, so in about a month?

MovingGifts avatar Mar 03 '17 18:03 MovingGifts

I had this same error, but after stopping the packager, and rebuilding, the error went away.

drblmb avatar Mar 03 '17 18:03 drblmb

same issue here, restarting packager doesnt help though ..

stverhae avatar Mar 06 '17 17:03 stverhae

@MovingGifts I think @grabbou is referring to the next release of react-navigation.

matthamil avatar Mar 07 '17 01:03 matthamil

@matthamil Yeah, I wasn't sure 100% since they both get new releases. @grabbou Can you please update this thread to let us know when it's resolved?

MovingGifts avatar Mar 07 '17 02:03 MovingGifts

There is work in progress on next release, no dates yet. I have my list to do as well as others, I guess this week we will ship a new updated version.

grabbou avatar Mar 07 '17 06:03 grabbou

Was running through the same issue after trying to update react-native with a simple npm install. Following the upgrading guide from react-native documentation and the react-native-git-upgrade module solved the problem.

raphaelameaume avatar Mar 09 '17 01:03 raphaelameaume

I was also facing the same issue. npm install -g react-native-git-upgrade react-native-git-upgrade rm -rf node_modules/ npm install All this solved the issue. Thanks! @raphaelameaume

cgarg avatar Mar 09 '17 05:03 cgarg

So I am having a workshop tomorrow in SF and so, I am quite busy over here. But I'll have more time during the weekend and will try to get back to you and resolve that issue.

On Wed, 8 Mar 2017 at 21:36 Chetan Garg [email protected] wrote:

I was also facing the same issue. npm install -g react-native-git-upgrade react-native-git-upgrade rm -rf node_modules/ npm install All this solved the issue. Thanks! @raphaelameaume https://github.com/raphaelameaume

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/react-community/react-navigation/issues/550#issuecomment-285259321, or mute the thread https://github.com/notifications/unsubscribe-auth/ACWcxpEPOaHonGE34xwu-y2eToDny516ks5rj4_QgaJpZM4MRSPc .

grabbou avatar Mar 09 '17 14:03 grabbou

Having the same problem. @cgarg solution not working for me :(

felangga avatar Mar 09 '17 18:03 felangga

I also encountered this question, who knows why ?

endachao avatar Mar 13 '17 08:03 endachao

@cgarg Solution also did not work for me.

I had to give up and just do react-native upgrade to fix it for me.

Edit: Still getting it on occasion regardless.

zawarudo avatar Mar 14 '17 03:03 zawarudo

I had to downgrade to 0.41.0

felangga avatar Mar 14 '17 03:03 felangga

stackoverflow I try to del ios/build and rerun " react-native run-ios".

It work for me

Jakevin avatar Mar 15 '17 07:03 Jakevin

If you clear out your native build and go again, it should work: http://stackoverflow.com/questions/42765165/react-native-0-42-expected-array-with-count-16

ericvicenti avatar Mar 17 '17 17:03 ericvicenti

@ericvicenti how do you clear the native build?

MovingGifts avatar Mar 18 '17 20:03 MovingGifts