You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
react-resizable@npm:3.0.4 [65850] doesn't provide react-dom (p951c8), requested by react-draggable
webpack
ERROR in ../../.yarn/__virtual__/react-draggable-virtual-79cbb65d2e/0/cache/react-draggable-npm-4.4.4-f0b7a5c546-b8258a5893.zip/node_modules/react-draggable/build/cjs/DraggableCore.js 14:39-59
Module not found: Error: react-draggable tried to access react-dom (a peer dependency) but it isn't provided by its ancestors; this makes the require call ambiguous and unsound.
Same problem here. The workaround did not work for me. Just to be clear, my problem was react-draggable and notreact-resizable! Further more, it seems like peerDependencies are not supported with @yarn v3.2.0.
My fix for the
Module not found: Error: react-draggable tried to access react-dom (a peer dependency) but it isn't provided by its ancestors; this makes the require call ambiguous and unsound.
Thanks for opening an issue!
Please select the type of issue you're reporting. For questions.
Problem Report
Dependency on
react-dom
broken. Probably related to react-grid-layout/react-draggable#525yarn install
webpack
Workaround
Add to
.yarnrc.yml
Then run
yarn install
.The text was updated successfully, but these errors were encountered: