-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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]: 8.0.0-alpha.4 broke stories that use ag-grid-react #26532
Comments
Pinging @JReinhold, because you might have the most context! |
@j0k3r Yeah, sounds like the problem. Any code/library that uses react-dom/server will probably break. |
10 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When loading stories using ag-grid-react you get the following error:
To Reproduce
https://stackblitz.com/edit/github-shgzvb?file=src%2Fstories%2Fdata.ts
System
Additional context
This is because ag-grid-react uses react-dom/server: https://github.com/ag-grid/ag-grid/blob/efc1ab73566f0e541ce30c44ba3fb1ff1e0ab903/packages/ag-grid-react/src/shared/reactComponent.ts#L6
Which is being resolved to react-dom-server.node.development.js
_Readable
isstream.Readable
which is a node API so it undefined in a browser which meanssuperClass.prototype
throws the error.react-dom/server is being resolved to the node version because of the vite dedupe plugin https://github.com/storybookjs/storybook/blame/dfa09c483863353212b1125a4091ef4a4878c7df/code/addons/docs/src/preset.ts#L143-L162
I have confirmed this by removing it by adding:
The text was updated successfully, but these errors were encountered: