#Migration error

20 messages · Page 1 of 1 (latest)

topaz lance
#

When I try to update the storybook to v7 it gives me this image error.

I've tried everything I've seen at the forums and it doesn't work.

FYI: Sorry for my bad english...

carmine lagoon
#

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?

topaz lance
#

When i run npx storybook@latest upgrade

#

😦

carmine lagoon
#

No, when you run npm ls --depth=1 @storybook/mdx1-csf.

topaz lance
#

I run the command and returned the following information.

And i tried to update to storybook 7 and it returns the second image:

carmine lagoon
#

Thanks. Can you now share your package.json?

topaz lance
#

There really are multiple mdx files, but I don't know which ones I can delete

carmine lagoon
#

Thanks! When you run npx storybook@latest upgrade, does it update your package.json and main.js? Or is it failing before that point?

topaz lance
#

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.

valid tusk
#
    "@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.

topaz lance
#

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

topaz lance
valid tusk
#

I don't see any errors. Does storybook work correctly now?

topaz lance
topaz lance
#

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?

topaz lance
#

It finally worked out guys. Thanks for all the help!