Closed hansoksendahl closed 1 year ago
@fabien-ml It seems like this code should be wrapped in an isServer
check. I spotted some other calls to the offending function getDocument
that probably also result in server errors when run in SSR mode (for instance the Toast component), I'll have to confirm if this is the case.
To anybody stuck with this error I was able to get around it by importing my component with unsafe_clientOnly
as described in this Github issue.
Describe the bug When rendering the
<Tooltip />
component with{ ssr: true }
set for the solid plugin in vite.config.ts the server crashes with an error.To Reproduce
Expected behavior The component should render and the server should not crash.
Screenshots If applicable, add screenshots to help explain your problem.
The component renders just fine.
However, the server crashes.
Desktop (please complete the following information):
Additional context The server is set-up for SSR following the instructions on the Kobalte documentation.