emotion-js/emotion

TypeError: React__namespace.createContext is not a function

felipe-vicente opened this issue · 0 comments

Current behavior:
Getting the following error when testing components using @emotion/react

TypeError: React__namespace.createContext is not a function

To reproduce:
https://github.com/felipe-vicente/test-emotion-jest

  1. yarn install
  2. yarn test components/index.test.jsx

Expected behavior:
To render component and pass without warnings

Environment information:
node 20.17.0 or 20.17.0

"@emotion/react": "11.13.3",
"react": "18.2.0",
"react-dom": "18.2.0"