Skip to content
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

Chakra UI Causes Invalid Hook Call in Astro #4396

Closed
1 task
JeffMusgrave opened this issue Aug 19, 2022 · 1 comment
Closed
1 task

Chakra UI Causes Invalid Hook Call in Astro #4396

JeffMusgrave opened this issue Aug 19, 2022 · 1 comment

Comments

@JeffMusgrave
Copy link

What version of astro are you using?

1.0.0

Are you using an SSR adapter? If so, which one?

No

What package manager are you using?

NPM

What operating system are you using?

Mac / Windows

Describe the Bug

When using Chakra-UI (and the react renderer), Astro throws:

Warning: Invalid hook call. Hooks can only be called inside of the body of a function component.

The page still renders, but none of the chakra components render correctly.

Link to Minimal Reproducible Example

https://codesandbox.io/s/inspiring-kalam-e58mx1

Participation

  • I am willing to submit a pull request for this issue.
@bluwy
Copy link
Member

bluwy commented Sep 4, 2022

I believe this is a duplicate of #4220. Closing in favor of it!

@bluwy bluwy closed this as not planned Won't fix, can't repro, duplicate, stale Sep 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants