admin管理员组文章数量:1332977
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
本文标签: nextjsUnable to setup a NextJS project using Deno 2Stack Overflow
版权声明:本文标题:next.js - Unable to setup a NextJS project using Deno 2 - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742344900a2457328.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论