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
Stories with async functions as properties throw "exports is not defined" in production #42
Comments
@penx thanks for the detailed issue, I'm away right now but once I get back I'll look into this. |
@penx sorry for the delay in responding, did you find any solution? |
No problem! I think we removed this addon and configured react-native-web manually |
@penx could you share the config that worked? maybe there is something we could include in the package to resolve the issue. |
As far as I understand, we're just using |
Closing this since I'm not sure how to reproduce and it seems like you've found a different solution. If you would like to reopen just let me know. |
Describe the bug
(original storybook issue here storybookjs/storybook#19290)
When
@storybook/addon-react-native-web
is used,yarn build-storybook
will not show stories that contain a story with a .play function/interaction (using@storybook/addon-interactions
).There are no errors during build, but an error does appear in the console when running the built storybook:
These stories are visible when you run
yarn storybook
but not shown when you runyarn build-storybook
.Note, this is not restricted to interactions, it seems the same bug exists for any async function added as a property to the story,
i.e.
To Reproduce
https://github.com/penx/storybook-bug-play-build
yarn && yarn build-storybook && npx http-server storybook-static --port 6006
then:
yarn storybook
, these stories are still visibleyarn build-storybook --loglevel silly
produces no errors or warnings other than what is visible in the repro-baseAdditional context
Screenshot of repro storybook with "Pages" missing:
Possibly related:
The text was updated successfully, but these errors were encountered: