Skip to content

Runtime Error in blog template #1117

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
harihar-nautiyal opened this issue Mar 29, 2025 · 3 comments
Open

Runtime Error in blog template #1117

harihar-nautiyal opened this issue Mar 29, 2025 · 3 comments

Comments

@harihar-nautiyal
Copy link

After initialization of blog template in solutions/blog
getting this runtime error -

➜ blog git:(main) ✗ npm run dev

dev
next dev

▲ Next.js 15.2.4

✓ Starting...
✓ Ready in 1417ms
○ Compiling /blog/[slug] ...
✓ Compiled /blog/[slug] in 957ms (779 modules)
⨯ [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.] {
    digest: '233309895'
    }
    GET /blog/vim 500 in 2037ms

I didn't touched the code just copied as suggested by
here.

@devdass
Copy link

devdass commented Apr 7, 2025

Same issue

@harihar-nautiyal
Copy link
Author

should I resolve it by migrating it to new version?

@lordkerwin
Copy link

I managed to fix this by updating the package.json to use

    "next": "15.3.0",
    "next-mdx-remote": "5.0.0",
    "postcss": "^8.5.3",
    "react": "19.1.0",
    "react-dom": "19.1.0",

And it seems happy now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants