-
-
Notifications
You must be signed in to change notification settings - Fork 9.1k
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
Standalone preview does not support addon-actions #8677
Comments
cc @RPDeshaies would you mind taking a look at this? |
I can have a look when I have some free time this week. I'm using parcel and the actions add-ons in a project and I have no issues on my end. If you have a repo to reproduce the issue that could help me a lot. |
Hi @RPDeshaies , repro at https://github.com/ryascl/storybook-standalone-preview .
|
Alright so, I was able to reproduce the issue with your repo (thank you). Though I have no idea why it fails it seems to be related to the initial render of the component having a onClick even that comes directly from the return function of an The reason why I say this, is because I was able to find a "temporary-fix" where I just used a anonymous function that calls the
P.S. Your repo is using @shilman any ideas why an initial react render using an onClick event that comes from the return value of the |
No idea. Forwarding to @ndelangen |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
Hey there, it's me again! I am going close this issue to help our maintainers focus on the current development roadmap instead. If the issue mentioned is still a concern, please open a new ticket and mention this old one. Cheers and thanks for using Storybook! |
@ryascl thanks for reproduction, I was also interested in the topic (to get rid of webpack but to use storybook) and it led me to this solution / workaround https://github.com/vasileermicioi/parcel-storybook |
Describe the bug
addon-actions does not work with the standalone approach in https://github.com/storybookjs/storybook/tree/next/examples/standalone-preview due to cross-frame constraints.
In addition, even without addon-actions, there are click listener warnings in console that suggest other things may be broken.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Message logged in action pane.
System:
Additional context
Using parcel for standalone build.
The text was updated successfully, but these errors were encountered: