Skip to content

[BUG]: Hydration error when navigating to /projects page #663

@AnshuPriya-1

Description

@AnshuPriya-1

Bug Description

When navigating to the Projects page (/projects), the website throws a React hydration runtime error and the page fails to render correctly.

This happens consistently when clicking the "View All Projects" button on the homepage or directly opening /projects.

The error shown is:

Unhandled Runtime Error
Error: There was an error while hydrating.

This indicates a mismatch between server-rendered HTML and client-rendered HTML during hydration.

Steps to Reproduce

  1. Clone the repository
  2. Run npm install
  3. Start the development server using npm run dev
  4. Open http://localhost:3000
  5. Click "View All Projects" on the homepage
    OR directly navigate to http://localhost:3000/projects
  6. The hydration runtime error appears

Logs and Screenshots

Error message shown in the browser:

Unhandled Runtime Error
Error: There was an error while hydrating.
Because the error happened outside of a Suspense boundary,
the entire root will switch to client rendering.

Screenshot attached for reference.

Image Image

Environment Details

  • OS: Windows 11
  • Browser: Microsoft Edge / Chrome
  • Node.js version: v22.19.0
  • Next.js version: 14.1.3

Impact

Medium - Feature works but has issues

Code of Conduct

  • I have joined the Discord server and will post updates there
  • I have searched existing issues to avoid duplicates

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions