Closed avindra closed 4 years ago
Use yarn-deduplicate and many of your duplicate will go away https://github.com/atlassian/yarn-deduplicate
@Bnaya cool library, but not sure how this is relevant here.
There is a new react-dom@16.12.0
which has scheduler@^0.18.0
as a dependency [source] and the latest @hot-loader/react-dom
is at version 16.11.0
which has scheduler@^0.17.0
[source].
Semver doesn't treat ^0.17.0
as compatible with ^0.18.0
, therefore yarn installs both, and the first one gets picked up by many other tools. In my case it seems to break now dev
with Gatbsy.
if you are using yarn, you may use yarn resolutions as a workaround
Do you mean to use yarn resolutions to downgrade gatsby
to downgrade gatsby-cli
to downgrade react-dom
to downgrade scheduler
so it can work with @hot-loader/react-dom
? Seems like just releasing new version of this library would be easier and less of a hack.
you can specify scheduler version directly. no need the entire chain. i'm offering a workaround :)
Yeah, seems like locking scheduler
at 0.17.0
does work, for now at least. Thanks.
Btw, is there a reason for this version mismatch from @hot-loader/react-dom
side?
Because updates have to be published manually
Thanks for the discussion lads. It looks like react fast refresh is the way forward, so this library will probably go away entirely. Closing this issue now
Updated all my deps and saw 2
scheduler
packages in yarn.lock. It seems this package is using the older one: