Swyftey
Swyftey4w ago

Next.JS with Deno 2.0 has "hydration" error after creation.

I want to continue using Deno and am trying to start a Next.JS project/directory using the below command, but when I run the project (using turbopack) and open the home page I get a "hydration" error. The command I am using to create the Next.JS app is: deno run -A npm:create-next-app@latest This is the error that keeps occurring:
No description
6 Replies
/usr/bin/cat
/usr/bin/cat4w ago
Open a issue i gesss, I also tested this, same!
marvinh.
marvinh.4w ago
I can't find an issue for that in our tracker. What are the steps to reproduce that error? I've created a new project with deno run -A npm:create-next-app@latest but I'm not getting that error
/usr/bin/cat
/usr/bin/cat4w ago
are you turbopack, i only got this when using turbopack to true then run with deno run dev
Swyftey
SwyfteyOP4w ago
So sorry! I completely forgot about this I'm not sure. I just use the command to create a new project and run "dev".
Swyftey
SwyfteyOP4w ago
No description
Swyftey
SwyfteyOP4w ago
I do know that sometimes it takes a second or two for the error to show, or you have to refresh in order to see it (the red error indicator at the bottom left). Also, every time the command runs to install the project, the last message claims that there is a new version of create-next-app available which I have installed already (it keeps showing). Fixed! @/usr/bin/cat It's not a Deno issue after all, it's a Next.JS issue with Chrome/browser extensions. Remove any chrome extensions you may not need or find and remove/disable the one interfering with the page.