使用
npx create-next-app@latest
我在使用 NextJS 15 重新开始时遇到错误。我已经更新了我的节点版本。有解决这个问题的方法还是我应该使用 NextJS 以前的版本?
更新我的节点版本,了解无效的 html 位置。或者我在安装 NextJS 15 的过程中错过了一些东西?
发生这种情况是因为您正在使用 ColorZilla Chrome 扩展程序。它在渲染后向 HTML 添加一个名为 cz-shortcut-listen:"true" 的属性。这会导致 NextJS 中出现水合错误。 要解决此问题,请确保在浏览器上禁用 ColorZilla Chrome 扩展程序。