React hydration error when I change html, and changes in dev server do not reflect until I restart.
Unanswered
Spotted Rail posted this in #help-forum
Spotted RailOP
I am just trying to change some html, but it throws hydration error, and also the changes do not reflect.
5 Replies
Spotted RailOP
I have also read this, none of these points apply to my code
This is the code that throws error:
these are my deps:
"dependencies": {
"@radix-ui/react-icons": "^1.3.0",
"@radix-ui/react-label": "^2.0.2",
"@radix-ui/react-slot": "^1.0.2",
"bcryptjs": "^2.4.3",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"mongoose": "^8.3.3",
"next": "14.1.0",
"next-auth": "^5.0.0-beta.13",
"react": "^18",
"react-dom": "^18",
"react-hook-form": "^7.51.4",
"tailwind-merge": "^2.3.0",
"tailwindcss-animate": "^1.0.7"
},
"devDependencies": {
"autoprefixer": "^10.4.19",
"eslint": "^8",
"eslint-config-next": "^14.1.0",
"postcss": "^8.4.38",
"tailwindcss": "^3.4.3"
}I have tried deleting the .next, node_modules, package.lock, and restarting/reinstalling, but does not work.
Spotted RailOP
Okay this seems to be a well known issue
https://github.com/vercel/next.js/issues/51162
https://github.com/vercel/next.js/issues/51162