next.js - Unable to setup a NextJS project using Deno 2 - Stack Overflow

I'm trying to setup a NextJS project based on Deno2 using the following Deno 2 docs.Deno2 NextJS

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 badges
Add a comment  | 

3 Answers 3

Reset to default 1

In 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

相关推荐

  • next.js - Unable to setup a NextJS project using Deno 2 - Stack Overflow

    I'm trying to setup a NextJS project based on Deno2 using the following Deno 2 docs.Deno2 NextJS

    4小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信