Cannot read properties of undefined (reading '__emotion_styles')
Open
@mnajdova is already working on this.
Since Jan 23, 2023.
package: styled-engine
scope: system
- Dominant language
- JavaScript
- Stars
- 99.1k
- Forks
- 32.5k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 106
Description
Duplicates
- I have searched the existing issues
Latest version
- I have tested the latest version
Steps to reproduce 🕹
No response
Current behavior 😯
Hi team, when I am running my app, I am receiving following error which emerges from one of MUI files:

I am not able to reproduce it outside in codesandbox but putting it up here to check if there is anyone has idea why this might occur which I can look into. Any help here would be appreciated.
Expected behavior 🤔
No response
Context 🔦
No response
Your environment 🌎
npx @mui/envinfo
System:
OS: Linux 3.10 Red Hat Enterprise Linux Server 7.9
Binaries:
Node: 16.18.1
Yarn: 1.22.11
npm: 7.23.0
Browsers:
Chrome
npmPackages:
@emotion/react: 11.10.5
@emotion/styled: 11.10.5
@mui/base: 5.0.0-alpha.84
@mui/core-downloads-tracker: 5.11.5
@mui/icons-material: 5.11.0
@mui/lab: 5.0.0-alpha.87
@mui/material: ^5.1.0 => 5.11.5
@mui/private-theming: 5.11.2
@mui/styled-engine: 5.11.0
@mui/system: 5.11.5
@mui/types: 7.2.3
@mui/utils: 5.11.2
@mui/x-date-pickers: 5.0.0-alpha.1
@types/react: 18.0.27
react: ^17.0.0 => 17.0.2
react-dom: ^17.0.0 => 17.0.2
styled-components: 5.0.1 => 5.0.1
typescript: ^4.3.5 => 4.9.4
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.