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
{{ message }}
This repository was archived by the owner on Jul 29, 2025. It is now read-only.
Hello, I'm getting a ReferenceError: Element is not defined when I try to SSR the Drawer component, running on version 0.7.1.
The issue is probably some optimization on the webpack build process where it removes "dead-code", because the error occurs on the tabbable npm package, imported from focus-trap, specifically on this line. But, as you can see, it has a check specifically to avoid this issue when running on node environments. I have checked the minified code and have confirmed that the check for the typeof Element is optimized away.
Unfortunately I don't have a reproducible codesandbox snippet as it doesn't execute the code with SSR 😔