Next.js Discord

Discord Forum

Next.js 15 /app with next-mdx-remote - A React Element from an older version of React was rendered.

Unanswered
pheralb posted this in #help-forum
Open in Discord
Hello Next.js Community!

I'm migrating a project from Next.js 14 to 15 but I'm having a problem with next-mdx-remote dependency:
[ Server ] Error: A React Element from an older version of React was rendered. This is not supported. It can happen if:
- Multiple copies of the "react" package is used.
- A library pre-bundled an old copy of "react" or "react/jsx-runtime".
- A compiler tries to "inline" JSX instead of using the runtime.

Does anyone know of a possible solution? Thanks 🙂

0 Replies