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
[Bug] render was not supported :( ! #294
Comments
@shilman I don't really quite understand what |
@IanVS We probably want to implement https://github.com/storybookjs/storybook/blame/next/lib/builder-webpack4/src/preview/virtualModuleEntry.template.js#L38. It's been available since v6.3.0-rc.5 so should be fine? |
@joshwooding Bingo! Render is a way for view layers to provide default render functions for CSF3, so that your stories can look like: export const Foo = {
args: { a: 1, b: 2 }
} And storybook is smart enough to pass those args to your component as props. |
Hmmm, but it seems like we can already use stories in that format (see
|
@shilman is this only needed for some frameworks and not others? Do you know of any view layers which use this method? Apparently react, vue3, and svelte don't need it? |
@IanVS I think there might be a bug. I started playing around with this but need to take a closer look. |
If you're using 6.4 I think it's only React & Angular that supports framework "default" render functions. Therefore, you should see some kind of error if you try to do this in web-components, regardless of the version. |
Describe the bug
I'm migrating my Storybook instance to Vite and for the most part things are working fine. Even with everything showing up, I'm seeing this message in the console and I have no clue why:
Steps to reproduce the behavior
I honestly have no clue how to reproduce it, I'm just migrating to this and seeing the issue. I tried looking at the source of this package but it is not clear to me why this would be showing up.
Expected behavior
No message appears in console.
Screenshots and/or logs
If applicable, add screenshots and/or logs to help explain your problem.
Environment
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: