Skip to content

Is there anything planned to make emotion compatible with React 19? #3318

Answered by nullisdefined
AgustinWaves asked this question in Q&A
Discussion options

You must be logged in to vote

The current official version of Emotion 11.14.0 doesn't explicitly support React 19, which is causing this issue. The reason npm can't resolve dependencies is because Emotion's peer dependency configuration doesn't explicitly include React 19.
While the Emotion team is working on improving some type compatibility with React 19, it appears that version 11 won't fully support React 19. The Emotion development team has officially stated that they plan to provide complete compatibility with React 19 in version 12.
If you absolutely need to use React 19 now, you can temporarily use React 19 with Emotion by using the --legacy-peer-deps option

npm install react@latest react-dom@latest --legacy-p…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by AgustinWaves
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants