solid-ui icon indicating copy to clipboard operation
solid-ui copied to clipboard

Cannot read properties of null (reading 'getComputedStyle')

Open tutods opened this issue 1 year ago • 2 comments

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:

  • Home Page -> About Page
  • About Page -> Home
  • The error appears-

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?

tutods avatar Aug 05 '24 03:08 tutods

Hi @tutods,

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

stefan-karger avatar Aug 05 '24 09:08 stefan-karger

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.

tutods avatar Aug 05 '24 09:08 tutods

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. :)

stefan-karger avatar Aug 26 '24 12:08 stefan-karger

Any updates? :)

stefan-karger avatar Sep 18 '24 12:09 stefan-karger

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.

tutods avatar Sep 18 '24 12:09 tutods