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

Emotion + @builder.io/react don't work together - "sheet.hydrate is not a function" #1400

Open
davidrhoderick opened this issue Nov 23, 2022 · 0 comments
Assignees

Comments

@davidrhoderick
Copy link

Describe the bug
I have a Next.js 12 project that uses MUI, which uses Emotion, and I want to integrate it with Builder.io. When I try to use the CacheProvider component, I get a sheet.hydrate is not a function error.

To Reproduce
Steps to reproduce the behavior:

  1. I set up a Next.js 12 project.
  2. I installed my dependencies, mainly @mui/material, @emotion/react, and @emotion/styled.
  3. Install the @builder.io/react library.
  4. Set up _app.js to utilize the CacheProvider with a key.
  5. Set up index.js to initialize the ThemeProvider, added the CssBaseline component, and added a singular element that should be styled by the theme.

Here's the CodeSandbox.

Expected behavior
This shouldn't cause a bug, I should be able to use these dependencies together.

Screenshots
image

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