Open peterhirn opened 3 years ago
Same problem here. The workaround did not work for me. Just to be clear, my problem was react-draggable
and not react-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.
error is:
packageExtensions:
"react-draggable@*":
dependencies:
"react-dom": "*"
in the yarnrc.yml
.
I hope this "hacks" don't become standard when working with Yarn > 1...
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 https://github.com/react-grid-layout/react-draggable/pull/525yarn install
webpack
Workaround
Add to
.yarnrc.yml
Then run
yarn install
.