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
Have you found a work around for this @dubvfan87? My Nextjs app crashes even when I dynamically import components that use element-closest and also only render when I've check for typeof window !== "undefined".
The package element-closest causes issues in an isomorphic application because the server does not have window.Element.
There is a fix which makes element-closest a no-op on the server side ->
"element-closest": "github:ptolemybarnes/closest",
The text was updated successfully, but these errors were encountered: