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
Next.js applies aliases to certain import sources. However, this does not apply to code dynamically evaluated like eval or Reflect.construct. Since next-mdx-remote-clientuses Reflect.construct to run code, imports to React will resolve to the wrong version of React. In this case it's the installed, Client React. Mixing different versions of React or Server and Client React in the same component is not supported.
The text was updated successfully, but these errors were encountered:
This is based off of vercel/next.js#76395
The concrete case used
React.createElement
instead of just JSX to construct elements. However, the same issue occurs if any other React is being used.Next.js applies aliases to certain import sources. However, this does not apply to code dynamically evaluated like
eval
orReflect.construct
. Sincenext-mdx-remote-client
usesReflect.construct
to run code, imports to React will resolve to the wrong version of React. In this case it's the installed, Client React. Mixing different versions of React or Server and Client React in the same component is not supported.The text was updated successfully, but these errors were encountered: