-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
CLI - create-react-library - 5.1 regression #6802
Comments
@mrmckeb It looks like you added this line here and @MikaelCarpenter touched it again when adding the installation improvements (but I don't think that's the problem): Would you mind taking a look at this? I'm pretty sure what's going on is that react-scripts is installed in a subdirectory but not in the main directory in |
This seems like a simple fix, i'll take this one for you @mrmckeb . PR incoming |
Thanks @MikaelCarpenter! Can this be closed off now? |
@mrmckeb will close when it's released |
Jeepers creepers!! I just released https://github.com/storybooks/storybook/releases/tag/v5.1.0-rc.0 containing PR #6815 that references this issue. Upgrade today to try it out! Because it's a pre-release you can find it on the Closing this issue. Please re-open if you think there's still more to do. |
Describe the bug
Running storybook init (
npx -p @storybook/cli@next sb init
) on a project generated withcreate-react-library
with next storybook version results with an error:Difference between what generates
create-react-app
andcreate-react-library
is where it putsreact-scripts
dependency.create-react-app
puts it independencies
whilecreate-react-library
puts it indevDependencies
.It works if I move
react-scripts
dependency fromdevDependencies
todependencies
after generating project withcreate-react-library
.It also works correctly with 5.0.11:
npx -p @storybook/cli sb init
.To Reproduce
Steps to reproduce the behavior:
npm install -g create-react-library
create-react-library -s -t default test
cd test
npx -p @storybook/cli@next sb init
Expected behavior
It should work the same way as
npx -p @storybook/cli sb init
- without an error, generating files.System:
The text was updated successfully, but these errors were encountered: