-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
[Bug]: Missing "./dist/preview.js" export in "@storybook/nextjs" package #20348
Comments
@jeremytenjo also trying to use Vite as builder with the Next framework in beta v7. Interested by a workaround :) . In the meantime what I see:
|
Im having the same issue but I don't understand the error message. Can someone explain? |
Thanks sneko, I ended up switching to the webpack v5 builder, it is more reliable than the vite builder. |
I'm also getting the error; Node:
|
The only way I managed to solve it was by updating Storybook to the new version. First of all, I was using Node 16 and migrated to 18. With this, an error about legacy providers started to appear, and many people were recommending downgrading the Node version or using a flag to bypass it, but I didn't fall for it. (Remember to save a commit of the project before doing this fix in case something goes wrong.) So I went to the project's documentation package and ran an "npm audit fix --force". After that, I continued to have an error, so I ran an "npm update". This resulted in all my dependencies being updated, including Storybook. In the new version of Storybook, we don't use the "start-storybook" command anymore... basically, if you run the command, it will say that it doesn't exist (link to the issue: #18923). To continue with the migration, I ran "npx storybook@next automigrate". Storybook helped a lot with the migration, detecting everything that needed to change and asking if it could do it automatically. I accepted everything! Haha. It updated the script to run the project, and now everything is working fine! |
I'm also getting the error;
|
Describe the bug
Getting error when running
sb dev
To Reproduce
System
Additional context
The text was updated successfully, but these errors were encountered: