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

Bump @emotion/server to install the latest @emotion/utils dependency #3223

Open
jnous-5 opened this issue Jul 24, 2024 · 1 comment
Open

Comments

@jnous-5
Copy link

jnous-5 commented Jul 24, 2024

Current behavior:

After updating @emotion/cache, @emotion/react, and @emotion/styled to v11.13.0, I receive the following type error.
image
This happens because of EmotionCache type mismatch between @emotion/cache (uses @emotion/utils@^1.4.0) and @emotion/server (uses @emotion/utils@^1.2.1).

For now, I just used yarn's resolutions to force @emotion/server to install the latest @emotion/utils.

"resolutions": {
    "@emotion/server/@emotion/utils": "^1.4.0"
}

To reproduce:

  1. Install or update @emotion/cache to v11.13.0 and @emotion/server to v11.11.0.
  2. Create a cache using createCache from @emotion/cache.
  3. Feed this cache to createEmotionServer from @emotion/server/create-instance.

Expected behavior:

It should not throw a type error.

Environment information:

  • react version: 18.2.0
  • @emotion/react version: 11.13.0
  • @emotion/cache version: 11.13.0
  • @emotion/styled version: 11.13.0
  • @emotion/server version: 11.11.0
@at-wat
Copy link

at-wat commented Oct 15, 2024

Any updates? I have a same issue and waiting this to be fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants