最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin1浏览0评论

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
发布评论

评论列表(0)

  1. 暂无评论