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

TypeError: React__namespace.createContext is not a function #3250

Open
felipe-vicente opened this issue Aug 29, 2024 · 0 comments
Open

TypeError: React__namespace.createContext is not a function #3250

felipe-vicente opened this issue Aug 29, 2024 · 0 comments

Comments

@felipe-vicente
Copy link

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 18.20.3 or 20.17.0

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

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

1 participant