BuilderIO / BuilderIO/builder

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

Open
#4,002 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
8.8k
Forks
1.2k
Avg merge
1d 6h
Merged PRs (30d)
17

Description

Hey Builder.io team! 👋

I’m working on the [vcp-sample-app](https://github.com/BuilderIO/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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.