Closed JaKXz closed 2 years ago
:wave: It looks like you're updating JavaScript packages that are known to cause problems when duplicated.
You can deduplicate them with the yarn-deduplicate
utility:
npx yarn-deduplicate --packages graphql react react-dom webpack
npx yarn-deduplicate --scopes @shopify @apollo
If running these commands doesn't produce a change in your yarn.lock file, you didn't have duplications in these packages and can carry on.
A duplicate React version may cause an invalid hook call warning.
React context providers usually use module-scoped globals as their default context values. Multiple versions of such packages will yield multiple global instances, resulting in oblique runtime errors.
Just a bit of TLC.