createContext in Next server
Does Next really disallow all access to contexts on the server?
I've got a custom React render (specifically only being used in the backend, contexts are required in
react-reconciler
, but Next seems to remove them whenever I run the route (TypeError: (0 , __TURBOPACK__imported__module__...__.createContext) is not a function
)2 Replies
Source (the custom renderer): https://github.com/Inbestigator/dressed/blob/main/packages/dressed-react/src/react/reconciler.ts
GitHub
dressed/packages/dressed-react/src/react/reconciler.ts at main · I...
A sleek, serverless-ready Discord bot framework. Contribute to Inbestigator/dressed development by creating an account on GitHub.
Looks like next removes stuff from react on server 😒
omg
The one thing preventing react-reconciler from working is ReactSharedInternals using
React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE