You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
I set up a Next.js 12 project.
I installed my dependencies, mainly @mui/material, @emotion/react, and @emotion/styled.
Install the @builder.io/react library.
Set up _app.js to utilize the CacheProvider with a key.
Set up index.js to initialize the ThemeProvider, added the CssBaseline component, and added a singular element that should be styled by the theme.
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 asheet.hydrate is not a function
error.To Reproduce
Steps to reproduce the behavior:
@mui/material
,@emotion/react
, and@emotion/styled
.@builder.io/react
library._app.js
to utilize theCacheProvider
with a key.index.js
to initialize theThemeProvider
, added theCssBaseline
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
The text was updated successfully, but these errors were encountered: