-
Notifications
You must be signed in to change notification settings - Fork 22
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
migrate to storybook 7.0.0-beta #52
migrate to storybook 7.0.0-beta #52
Conversation
@natsuki-ornikar thats a weird error, I'll try ask around |
my suspicion is that it might be related to this Babel mode v7: Storybook now uses Babel mode v7 exclusively. In 6.x, Storybook provided its own babel settings out of the box. Now, Storybook's uses your project's babel settings (.babelrc, babel.config.js, etc.) instead. In the new mode, Storybook expects you to provide a configuration file. If you want a configuration file that's equivalent to the 6.x default, you can run the following command in your project directory:
maybe you can try running this command? |
@dannyhw Still facing the same issue. 😞 Asking @yannbf from storybookjs/addon-coverage if he had the same issue when migrating to 7.0 in storybookjs/addon-coverage#3. My suspicion is that is related to the Webpack rules options for |
Looks like its working now, the chromatic preview is here https://618d44792e48fd003a482f88-ziyaduhujd.chromatic.com/?path=/docs/introduction--docs |
I'm going to merge this to a "next" branch where these changes can live until v7 is stable |
Si this so great, thank you @dannyhw :-) |
* migrate to storybook 7.0.0-beta (#52) * chore(migration): migrate from storybook v6 to v7 * fix: format mdx file * fix: add missing babel plugin --------- authored-by: Arnaud Manaranche <arnaud.manaranche@ornikar.com> * trigger canary * lock * fix: remove unnecessary builder config from main.js (#54) * update to rc version * chore: update package.json to remove unused/un-needed dependencies * remove unused peerDeps, widen sb devDeps, fix start script * simplify sb dev deps range --------- Co-authored-by: Natalie Rouvière <natalie.rouviere@ornikar.com> Co-authored-by: Michael Shilman <shilman@users.noreply.github.com> Co-authored-by: Jeppe Reinhold <jeppe@reinhold.is>
@dannyhw This is a draft, but I'm almost done doing the migration for 7.0 beta.
I'm stuck on this issue when starting Webpack 5:
Do you have any idea of what this can be? I admit I'm bit lost 🤔
Ref issue: #47