【发布时间】:2021-11-02 19:17:54
【问题描述】:
- The other answer covered how to debug this which I did
- 我收到此错误,但无法确定是什么原因造成的。我检查了 HTML 标记,似乎不是这个问题的根源
- 我在我的代码中使用 Nuxt 和 SSR
- Here is the codesandbox link with the actual error in it
如果有人能告诉我是什么导致了这个错误,真的很感激
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.
【问题讨论】:
-
嗨,到目前为止,您尝试了什么?关于在哪里找到问题有很多想法。评论和切换某些块可能会有所帮助。
-
@kissu 到目前为止我唯一尝试过的是仅限客户端的块,它可以工作,但我的问题是它为什么要这样做?这是一个 buefy 特定的事情,没有客户端,为什么它不会工作
-
我的回答提供了示例并链接到从头开始解释它的文章。