Closed awfulminded closed 2 years ago
some problem.
Here's a repro: https://stackblitz.com/edit/github-89mxgh
Looks like Chakra uses Emotion, which doesn't support renderToPipeableStream
in SSR (https://github.com/withastro/astro/issues/4432#issuecomment-1260458609). Closing as it's a duplicate of https://github.com/withastro/astro/issues/4432
Are we sure this is a duplicate?
1) Why do the styles load on the first (SSR) page load after the server boots, but not on subsequent SSR page loads?
2) It works in Remix, which uses renderToPipeableStream
I'm trying to dig into both of the above, but commenting here as I'm not convinced this is entirely an upstream issue.
@awfulminded You need this:
<Chakra client:load />
What version of
astro
are you using?latest
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
npm
What operating system are you using?
Windows
Describe the Bug
I'm trying to use
chakra ui
, but at some point when using ajsx component
, the whole project loses styles, including components from chakra. It only works once when I create the whole project from scratch, but it stops after the first page refreshJsx component im trying to add:
index.astro:
layout.astro
Link to Minimal Reproducible Example
.
Participation