-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot use with Chakra UI #7475
Comments
Hello! Sorry for the frustration. Chakra currently is not expected to work with Astro for a few reasons. When Astro renders React components, each of them are executed as an "island" in an isolated scope. That means that Additionally, CSS-in-JS is often incompatible with Astro because many popular solutions rely on non-standard lifecycle hooks that aren't compatible with Astro's server rendering approach. I'm going to close this in favor of #4432, which documents all of the issues with using CSS-in-JS in Astro today. |
Thx for reply, I like Astro. I hope it develops better and better. |
What version of
astro
are you using?2.6.4
Are you using an SSR adapter? If so, which one?
no
What package manager are you using?
yarn
What operating system are you using?
Mac
What browser are you using?
Chrome
Describe the Bug
After I add the Chakra's code, the style is lost in the Chakra component
What's the expected result?
The style is worked fine.
Link to Minimal Reproducible Example
https://codesandbox.io/p/sandbox/boring-browser-yzk2yz?file=%2Fpackage.json%3A11%2C5
Participation
The text was updated successfully, but these errors were encountered: