-
-
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
sb migrate doesn't work #12020
Comments
what happens if you run |
I have this error when I run either of these commands
|
I just opened another ticket for the |
I got
Though I still had the same issue when running |
I'm getting a similar error
|
@alexandernanberg I just tried and removed |
@henrycity Thanks, that worked! 🎉 |
@henrycity any idea what's going on here? |
I read a similar issue in another library vercel/next.js#6879 and just tried that approach. Still can't find the root issue here. |
So to confirm, current state is that everything works, but only with the workaround of removing |
Yeah, it works with that workaround. After I finished running |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
Hey there, it's me again! I am going close this issue to help our maintainers focus on the current development roadmap instead. If the issue mentioned is still a concern, please open a new ticket and mention this old one. Cheers and thanks for using Storybook! |
I had this same issue, but was able to work around it by running the command from one directory higher and modifying the glob as described in #7602 (comment)
|
@henrycity where did you remove babel-preset-env? Thanks! |
This still does not work for me with npx -p @storybook/cli@next sb migrate csf-hoist-story-annotations --glob="**/*.stories.tsx"
=> Applying csf-hoist-story-annotations: 25 files
Processing 25 files...
Spawning 15 workers...
Sending 2 files to free worker...
Sending 2 files to free worker...
Sending 2 files to free worker...
Sending 2 files to free worker...
Sending 2 files to free worker...
Sending 2 files to free worker...
Sending 2 files to free worker...
Sending 2 files to free worker...
Sending 2 files to free worker...
Sending 2 files to free worker...
Sending 2 files to free worker...
Sending 2 files to free worker...
Sending 1 files to free worker...
All done.
Results:
0 errors
25 unmodified
0 skipped
0 ok
Time elapsed: 1.427seconds |
@nickofthyme do you want to create a new issue with a sample stories file and I can take a look? |
Sure thing. See #15442 |
Describe the bug
I tried to migrate from storiesOf to CSF and the script couldn't run. I also had the same issue when running
upgrade-hierarchy-separators
.To Reproduce
Run
npx -p @storybook/cli@next sb migrate storiesof-to-csf --glob="**/*.stories.tsx"
Errors:
Expected behavior
All of the files are migrated to CSF.
Code snippets
If applicable, add code samples to help explain your problem.
System:
I cannot run
npx sb@next info
either.I got this error
Though this is the system information I manually get
The text was updated successfully, but these errors were encountered: