-
-
Notifications
You must be signed in to change notification settings - Fork 142
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
Examples cannot be run on Android & macOS on the next-6.0 branch #186
Comments
you might need to run yarn start manually inside the native example folder for the bundler to work properly. The example works for me but I always manually run the bundler. |
Thank you! 🙏 👍 The example app starts fine by replacing step 2 in this report with
It also works on iOS. I'll make a PR to document this to https://github.com/storybookjs/react-native/blob/3a199cce9cd8c4563683930247cc1777f02d4399/CONTRIBUTING.md#native-app . Not sure why the I'll close this as the issue is clearly solved by running |
@lauriharpf great, glad that it worked :). Just one more note, you only need to run yarn install once in the root of the project due to the mono repo setup. So you shouldn't need to run Running yarn start manually is required because of the hoisted node_modules. The react native package assumes that the bundler should be started from where the node_modules folder is. |
…ybookjs#186 and current next-6.0 branch content
…and current next-6.0 branch content
Describe the bug
React Native Storybook examples cannot be run on Android & macOS with 3a199cc
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The example app starts and examples can be used to verify functionality.
Screenshots
Screenshot of emulator with react-native 0.64.1 as the specified dependency in
/examples/native/package.json
:Screenshot of emulator with react-native 0.64.2 as the specified dependency in
/examples/native/package.json
(see "Additional context"):System:
Please paste the results of
npx -p @storybook/cli@next sb info
here.Additional context
If the react-native dependency in
/examples/native/package.json
is bumped to 0.64.2, the error reported in Metro console is different:For clarity, I'm also unable to run the examples on iOS (Metro fails to start). Attempting to run on Android produces better debugging information, so focusing the report on that.
The text was updated successfully, but these errors were encountered: