solidjs / solid-start

SolidStart, the Solid app framework
https://start.solidjs.com
MIT License
4.94k stars 371 forks source link

[Bug?]:Error: Hydration Mismatch. Unable to find DOM nodes for hydration key: 0-0-0-0-0-0-0-0-1-0-0-0-1-0-0-0-0-0-1 #1473

Open KunalSin9h opened 1 month ago

KunalSin9h commented 1 month ago

Duplicates

Latest version

Current behavior 😯

Whenever i create a route with folders like routes/admin/dash.tsx this error happens when accessing that page.

Expected behavior 🤔

The page should render as normal.

Steps to reproduce 🕹

Steps:

  1. Create a route with folder

Context 🔦

No response

Your environment 🌎

No response

KunalSin9h commented 1 month ago

image

ryansolid commented 1 month ago

Does this happen after restarting the dev server. There is a known bug: https://github.com/solidjs/solid-start/issues/1286

KunalSin9h commented 1 month ago

@ryansolid tested also with v1, when adding new route this error happens, but after shutting down vite and restart is working.

FlatMapIO commented 1 month ago

Based on my experience, encountering such issues is usually due to:

Generally, restarting the development server resolves the issue. Sometimes, it's also necessary to delete the node_modules/.vinxi directory.

KunalSin9h commented 1 month ago

working only when removing node_modules/.vinxi package.

sckoorp commented 1 month ago

same issue happened to me when creating routes/product/[id].tsx, even after restarting the dev server, the problem persists, but deleting node_modules/.vinxi resolves it.

anurag-roy commented 1 month ago

A hard reload on the browser (Ctrl+Shift+R) seems to solve it for me

klequis commented 4 weeks ago

I have had this problem as well. The problem goes away when I disable the browser cache.

juanUrdaneta commented 3 weeks ago

removing node_modules/.vinxi or doing a hard reload cmd + shift + R solves the issue as well.

cs-clarence commented 2 weeks ago

same problem