The `@emotion/core` package has been renamed to `@emotion/react`

Author: alexkalininsCreated Dec 16, 2020Updated Feb 13, 2025

Hello, I was following the documentation getting started demo. I installed all the peer dependencies. When I ran it, it showed me Module not found: Can't resolve '@emotion/react'. After installing @emotion/react, I got an error that: The '@emotion/core' package has been renamed to '@emotion/react'.

Apparently in Emotion 11, @emotion/core was renamed to @emotion/react, but since no version was specified when installing in yarn, @emotion/styled depends on @emotion/react.

Source: projectstorm/react-diagrams