Skip to content

Sample App Crashes with createContext is not a function due to @emotion/core #4002

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

Open
paespiza opened this issue Apr 2, 2025 · 0 comments

Comments

@paespiza
Copy link

paespiza commented Apr 2, 2025

Hey Builder.io team! 👋

I’m working on the vcp-sample-app as part of the Sales Engineer tech challenge, and I ran into a hard crash on startup using the latest versions of React and Next.js.

Error: TypeError: (0 , react__WEBPACK_IMPORTED_MODULE_1__.createContext) is not a function

After some digging, I found the root cause: the app (or one of its dependencies) is still referencing @emotion/core, which is deprecated and incompatible with React 18+.

Fix:

  • Remove @emotion/core
  • Replace with @emotion/react and @emotion/styled
  • Ensure Builder.io SDK or any sample configs don’t rely on the deprecated package

Would love it if the sample repo could be updated so others don’t hit the same issue.

Thanks! Loving the platform so far

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant