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
How to run the examples? #75
Comments
I'm getting duplicate module errors when running
Any idea how to fix? |
Please check the doc I linked to which has exact instructions to run the app. |
I did follow that. Still getting the duplicate module errors. |
Run |
I get the same duplicate module error either way. |
Delete your node modules and try again, or just delete the node modules from the |
I'm getting similar errors and cannot run the examples.
EDIT: I followed the directions in that link, and I got different errors. See below.
|
Finally got it to work. Had to re-install watchman ( |
@satya164 looks like the instructions work for NavigationPlayground, but it doesn't work for ReduxExample. I tried with a clean clone of the repo. |
I have the saem error of duplicated module name This error is caused by a @providesModule declaration with the same name across two different files.
Error: @providesModule naming collision:
Duplicate module name: react-native-vector-icons
Paths: /Users/sibelius/Dev/entria/react-navigation/node_modules/react-native/local-cli/core/__fixtures__/files/package.json collides with /Users/sibelius/Dev/entria/react-navigation/examples/ReduxExample/node_modules/react-native/local-cli/core/__fixtures__/files/package.json
This error is caused by a @providesModule declaration with the same name across two different files.
at HasteMap._updateHasteMap (/Users/sibelius/Dev/entria/react-navigation/node_modules/react-native/packager/react-packager/src/node-haste/DependencyGraph/HasteMap.js:158:13)
at p.getName.then.name (/Users/sibelius/Dev/entria/react-navigation/node_modules/react-native/packager/react-packager/src/node-haste/DependencyGraph/HasteMap.js:133:31) |
Got it somehow working on Win. |
There appears to be duplicated running steps both within https://github.com/react-community/react-navigation/blob/master/docs/guides/Contributors.md#1-run-the-native-playground and the readme.md of the native-playground folder. However; I am getting the same
|
I was able to solve this issue by completely deleting my git clone of react-navigation, and following the steps within the contributors document |
Is there anyone to get run the examples on Linux. I just changed The outcome:
|
I'm getting same error message
12:28:40 PM: Starting packager... npm ERR! A complete log of this run can be found in: |
I am getting the same error as @P-A-R-U-S |
@cjoshmartin npm update helped me. |
…navigation#75) ## Motivation When pressing back in a StackNavigator nested inside the SwitchRouter, the screen would get popped, but the routeKeyHistory of the SwitchRouter gets popped even though the SwitchRouter doesn't handle the back action. This results in the next back action skipping the last opened tab. ## Fix Before popping the `routeKeyHistory` stack, we check that the history actually changed. I also added a test for this
As far as I know we have to first init a clean RN project and then add react-navigation via yarn or npm to the new project.
If I got it right, we then have to navigate in the new project folder to node_modules/react_navigation and do the steps described here:
https://github.com/react-community/react-navigation/tree/master/examples/NavigationPlayground
But if I do this, I get: 'Android project not found' even with two separate shells.
How do we run the examples on the correct way?
Am I the only one?
The text was updated successfully, but these errors were encountered: