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
- Clone the repository
- Run
npm install
- Start the development server using
npm run dev
- Open
http://localhost:3000
- Click "View All Projects" on the homepage
OR directly navigate to http://localhost:3000/projects
- 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.
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