-
Notifications
You must be signed in to change notification settings - Fork 36
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
registerApolloClient is not a function when using RSC's with Storybook #307
Comments
We are following the server module convention of That means that Unfortunately, if you are experiencing this with StoryBook, it seems that they are not adhering to those conventions - they would need to set the |
PS: I believe you should be able to manually set that as shown in https://webpack.js.org/configuration/resolve/#resolveconditionnames but that would probably set it for all your components and as a result break your Client Components. It might be worth a try though - but in the end, this can only be solved on the StoryBook side. |
Thanks for the quick response! and yeah, that makes sense. Seems like the storybook implementation of RSC's is fully client side (storybookjs/storybook#25091) so this might be an issue for everyone trying to use this lib with storybook. Will raise the issue with them and see if theres a path forward. Thanks again! |
Thank you! Following the discussion over there :) |
I'm trying to upgrade from v0.5.* to latest, and noticed when I upgrade this package my storybook starts to have issues bundling things correctly. Anyone have any ideas how to fix this? The docs on using RSC's with storybook are here: https://storybook.js.org/blog/storybook-react-server-components/
The text was updated successfully, but these errors were encountered: