sek-consulting / solid-ui

Beautifully designed components. Built with Kobalte & corvu. Styled with Tailwind CSS.
https://www.solid-ui.com
MIT License
878 stars 33 forks source link

Cannot read properties of null (reading 'getComputedStyle') #123

Closed tutods closed 1 month ago

tutods commented 3 months ago

Hi I'm trying to use the carousel component with Embla, but I'm facing this error: image

The error only appears when I switch between routes two times, like:

Already try to use clientOnly as people suggest me on SolidJS Discord group, but didn't work. Any way to avoid this error without disabling SSR?

sek-consulting commented 3 months ago

Hi @tutods,

does this error also happen if you use the embla package by itself? Or is it a SolidUI only problem?

tutods commented 3 months ago

Didn't try with embla only, but I didn't install from Solid UI, only copy all login and a few styles, and the rest I implement my own styles.

sek-consulting commented 2 months ago

Is it possible for you to create a minimal reproducible example? Without anything just using SolidStart and SSR, 2 pages and a simple carrousel.

Thanks in advance. :)

sek-consulting commented 1 month ago

Any updates? :)

tutods commented 1 month ago

Yes, sorry for the delay. The problem is using the Iconify for Solid, for now I'm using phosphor icons web font and apparently works.