【发布时间】:2021-06-08 21:34:24
【问题描述】:
我在我的应用程序中使用 Nuxt.js / Vuejs,但我在不同的地方一直面临这个错误:
The client-side rendered virtual DOM tree is not matching server-rendered content.
This is likely caused by incorrect HTML markup, for example nesting block-level elements inside <p>, or missing <tbody>.
Bailing hydration and performing full client-side render.
我想了解调试此错误的最佳方法是什么?他们是我可以记录/获取客户端和服务器的虚拟 DOM 树以便我可以比较并找到错误所在的一种方式吗?
我的是一个大型应用程序,手动验证很困难。
【问题讨论】:
标签: javascript vue.js vuejs2 nuxt.js