#Migration error
20 messages · Page 1 of 1 (latest)
Hi! No need to apologize; I can understand you fine. 🙂
Can you share the output when you run the command on the last line of that message?
No, when you run npm ls --depth=1 @storybook/mdx1-csf.
I run the command and returned the following information.
And i tried to update to storybook 7 and it returns the second image:
Thanks. Can you now share your package.json?
Here is the package.json
There really are multiple mdx files, but I don't know which ones I can delete
Thanks! When you run npx storybook@latest upgrade, does it update your package.json and main.js? Or is it failing before that point?
Failed before this point, follow print...
After failing I ran npm install -D @storybook/addon-styling which made the change to package.json and package-lock.json and manually changed main.cjs. I tried to run the npx storybook@latest upgrade again and the error that from mdx occurred.
"@storybook/builder-vite": "^0.4.2",
"@storybook/builder-webpack4": "^6.5.16",
"@storybook/manager-webpack4": "^6.5.16",
You don't need those if you're upgrading to 7.0. And it looks like you're not using addon-postcss, so you could remove that as well. Are you using storybook with vite or webpack?
And you can remove the mdx-csf dependency from your package.json as well.
I'm using webpack in the project for the build and vite for run the storybook
I will remove the dependencies and try to update
I don't see any errors. Does storybook work correctly now?
Yes, work correctly but in the version 6.5.16. Eu would like to update
Guys, I'm having the same problems as before, so far I couldn't solve it 😦
Today the storybook is not working properly. Even in version 6.5.16. I don't know what to do, can you help me?
It finally worked out guys. Thanks for all the help!