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
Installing storybook for react-native fails because of error: "npm ERR! code EINVALIDTAGNAME" #12334
Comments
Having the exact same issue. Hope somebody answers. |
@dannyhw any chance you can take this one? |
@shilman yeah I'll take a look. If you want to try a workaround in the meantime something like this could work:
Just make sure you change any dependencies from 6.x storybook to version 5.3.x because react native storybook doesn't support V6 yet. Edit: |
After trying this on a fresh project the following dependencies get installed
It seems likely that the v6 deps are the problem for future reference these are the steps I followed
Using expo or not shouldn't make a difference here. |
This seems to work for me
Will see if I can fix the version of storybook dependencies of the init command to 5.x |
@DPangerl I didn't get the same error that you got, could you share the contents of your package.json or perhaps create a reproduction branch edit: Actually tried this again with react native cli + mac. I did get the error this time, however you should be prompted to choose a version, if you choose 16.13.1 it should work. Will try to find out why this happens. edit2: |
#12405 should fix this issue and others related to the init for react native not working correctly. |
Son of a gun!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.1.0-alpha.7 containing PR #12405 that references this issue. Upgrade today to try it out! You can find this prerelease on the Closing this issue. Please re-open if you think there's still more to do. |
¡Ay Caramba!! I just released https://github.com/storybookjs/storybook/releases/tag/v6.0.25 containing PR #12405 that references this issue. Upgrade today to try it out! |
Describe the bug
Installing storybook for react-native with
npx -p @storybook/cli sb init --type react_native
leads to the following error:
To Reproduce
Execute
npx -p @storybook/cli sb init --type react_native
At
Do you want to install dependencies necessary to run Storybook server?
submit yes or noExpected behavior
Storybook gets installed correctly
System:
Additional context
I don't use expo for the react-native project
The text was updated successfully, but these errors were encountered: