You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we decide to prebundle the dependencies, it would result in a noticeable increase in bundle size. Additionally, we have had issues in the past related to multiple instances of stores or store objects, which required some work to deduplicate those. Prebundling these would worsen the situation again.
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
the addon imports in
src/shared/preview/core-annotations.ts
result in a cyclic dependency after bundled since we end up withstorybook/preview-api -> storybook/measure -> storybook/preview-api
normally this wouldn't be an issue but there is currently a bug with metro which can cause crashes with cyclic dependencies.
so this is kinda a long winded issue but it would still be good to remove cyclic dependencies if possible
Reproduction link
https://github.com/dannyhw/repro-compiler
Reproduction steps
System
Additional context
only happens if the react compiler is enabled for react native projects
heres the issue on react native storybook
storybookjs/react-native#732
a workaround is comment out these lines in
node_modules/storybook/dist/preview-api/index.js
for example with a package patchThe text was updated successfully, but these errors were encountered: