NextJS 15 默认入门应用程序显示错误

问题描述 投票:0回答:1

使用

npx create-next-app@latest
我在使用 NextJS 15 重新开始时遇到错误。我已经更新了我的节点版本。有解决这个问题的方法还是我应该使用 NextJS 以前的版本?

NextJS 15 的全新应用程序 enter image description here

我得到的错误 enter image description here

更新我的节点版本,了解无效的 html 位置。或者我在安装 NextJS 15 的过程中错过了一些东西?

next.js
1个回答
0
投票

发生这种情况是因为您正在使用 ColorZilla Chrome 扩展程序。它在渲染后向 HTML 添加一个名为 cz-shortcut-listen:"true" 的属性。这会导致 NextJS 中出现水合错误。 要解决此问题,请确保在浏览器上禁用 ColorZilla Chrome 扩展程序。

© www.soinside.com 2019 - 2024. All rights reserved.