-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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]: findDOMNode warnings when running storybook #20140
Comments
Seeing the same when running Storybook 7.0 alpha. It's the They have two old issues ctrlplusb/react-sizeme#156 and ctrlplusb/react-sizeme#199 (going all the way back to 2018) - Seems unlikely to be changed in the package? Should Storybook migrate to another package? |
Same issue on 7.0.0-beta.4. |
Thank you for the investigation! Seems like we could migrate to https://www.npmjs.com/package/react-resize-detector instead. |
Yay!! I just released https://github.com/storybookjs/storybook/releases/tag/v7.0.0-beta.13 containing PR #20333 that references this issue. Upgrade today to the
Closing this issue. Please re-open if you think there's still more to do. |
@shilman, react-resize-detector also seems to use the deprecated |
Yeah, I just upgraded to next version, but error's still there. |
😭 |
Looks like, perhaps if I pass a ref, I could make it go away: |
I'll disable strict-mode in the manager, for now. |
Looks like you should pass one of:
If the components you are measuring don't support |
@thebuilder that seems like a great alternative, would you be open to submitting a PR? |
Made a new PR where I rewrote it to use the |
Yippee!! I just released https://github.com/storybookjs/storybook/releases/tag/v7.0.0-beta.14 containing PR #20345 that references this issue. Upgrade today to the
Closing this issue. Please re-open if you think there's still more to do. |
This is just the removable of StrictMode. The real fix is still in #20368 |
Yeah I recon when we upgrade the manager to React18, we'll add this back.. |
Yowza!! I just released https://github.com/storybookjs/storybook/releases/tag/v7.0.0-beta.15 containing PR #20368 that references this issue. Upgrade today to the
|
Describe the bug
I'm seeing findDOMNode warnings whenever running storybook. I don't see warnings when running my app, there are no references to findDOMNode in my code, and the entire stacktrace only references code in
node_modules/@storybook/manager/dist/
To Reproduce
My project uses Vite and sb repro isn't offering that option. What should I do instead?
System
Additional context
No response
The text was updated successfully, but these errors were encountered: