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
When removing a component that is not being used anymore, i get this error. I think it might be coming from the import * as HoverCard.
Reproduction
When using the Select component in SvelteKit (Svelte 5 runes), the build/runtime fails during SSR if src/lib/components/ui/hover-card is removed — even if HoverCard is never used in my code.
The error looks like:
Cannot read properties of undefined (reading 'Root')
and points to:
const Root = HoverCardPrimitive.Root;
Logs
ERROR TypeError: Cannot read properties of undefined (reading 'Root')
System Info
ERROR TypeError: Cannot read properties of undefined (reading 'Root')