You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Vue warn]: 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.
It works when one use only LF in the desc.html
The text was updated successfully, but these errors were encountered:
这个报错的原因是因为服务器渲染出的 html 和客户端 Vue 生成的 DOM 树(VNode 树)结构不一致,开发版本的 Vue 会给出报错。这个错误导致的原因除了 warning 消息中提到的浏览器自动修正不规范 DOM 之外,更多的是一些修改 DOM 的 directive 导致的。官网对此给出了两个修改意见:
Vue.js version
2.1.7
Steps to reproduce
desc.html has a multiline text with CRLF like:
What is Expected?
code generation without a warning/error.
What is actually happening?
Error:
It works when one use only LF in the desc.html
The text was updated successfully, but these errors were encountered: