You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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:
Would love it if the sample repo could be updated so others don’t hit the same issue.
Thanks! Loving the platform so far
The text was updated successfully, but these errors were encountered: