I'm trying to setup a NextJS project based on Deno2 using the following Deno 2 docs.
Deno2 NextJS
However, I get Hydration Failed error once I run the code. Steps to reproduce -
deno run -A npm:create-next-app@latest
deno install
deno task dev
I followed the advice from Github Discussions to rm -rf node_modules and .next but to no avail.
I'm trying to setup a NextJS project based on Deno2 using the following Deno 2 docs.
Deno2 NextJS
However, I get Hydration Failed error once I run the code. Steps to reproduce -
deno run -A npm:create-next-app@latest
deno install
deno task dev
I followed the advice from Github Discussions to rm -rf node_modules and .next but to no avail.
Share Improve this question asked Nov 20, 2024 at 16:25 Vivek KaushikVivek Kaushik 3211 gold badge2 silver badges6 bronze badges3 Answers
Reset to default 1In my case, I've encounted "next: command not found".
To resolve this error, I run:
deno install npm:next
So, apparently, it works with Next14 but not 15!
deno run -A npm:create-next-app@14 -- This works!
deno run -A npm:create-next-app@latest -- This doesn't!
So I solve the issue by installing Vite with Nuxt3 and Deno v2.1 and doing the install through the deno install
deno install npm:three
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742344900a4426351.html
评论列表(0条)