Closed kyle-mcknight closed 8 months ago
npx storybook@latest upgrade
also failed with same error message for me when upgrading from 6 to 7.
I get the same issue on a brand new react-native project
In my case I needed to install a version 6 of @storybook/cli (f.e. v6.5.15) and then run the installer again. Then it worked 🎉
I'm still getting this error when upgrading a RN Storybook from 6.5.X -> 7.6.17. Is there a way to retroactively fix this?
Describe the bug
I upgrade from 6 to 7 today and have so many issues. This is a react native project.
I've found some issues have to do with some of the addon-ondevice-* pakages with not being able to find @storybook/global. I removed those dependencies to make this issue maybe a little easier.
I tried to use the upgrade with
npx storybook@latest upgrade
and that fails with the followingSo I followed the migration guide and after that
package.json dependencies
Metro's metro.config.js
Storybook's index.ts
Storybook's main.ts
Storybook's preview.tsx
My app's entry point
When I compile and run I get this in the terminal
It still attempts to run and I get this in the browser console
To Reproduce
No response
System
Additional context
No response