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
Uncaught Error: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
You might have mismatching versions of React and the renderer (such as React DOM)
As a result we get multiple versions of React on the page and it fails. Doesn't it make sense to propagate the deps parameter? Or provide a way to specify resolutions for intermediary dependencies?
The text was updated successfully, but these errors were encountered:
Consider the following page:
It fails with:
On one hand:
https://esm.sh/react@17.0.0?dev
https://cdn.esm.sh/v55/react@17.0.0/es2015/react.development.js
On the other:
https://esm.sh/@material-ui/core@4.12.3/TextField?deps=react@17.0.0,react-dom@17.0.0&dev
https://cdn.esm.sh/v55/@material-ui/core@4.12.3/X-ZGVwczpyZWFjdC1kb21AMTcuMC4wLHJlYWN0QDE3LjAuMA/es2015/TextField.development.js
https://cdn.esm.sh/v55/react-transition-group@4.4.2/es2021/react-transition-group.development.js
https://cdn.esm.sh/v55/react@17.0.2/es2021/react.development.js
The same with
@mui/material
:As a result we get multiple versions of React on the page and it fails. Doesn't it make sense to propagate the
deps
parameter? Or provide a way to specify resolutions for intermediary dependencies?The text was updated successfully, but these errors were encountered: