如何解决无法在“节点”上执行“ appendChild”:此节点类型不支持此方法
每次我在Vercel上构建时,页面加载时都会出现此错误。
"Failed to execute 'appendChild' on 'Node': This node type does not support this method"
谁能帮助我解决这个问题? Tt在netlify上可以正常使用,但在vercel上却不能。
使用“ v-html”的页面给我错误
但这是标准的vue指令。
以下是我使用v-html的示例:
<div
v-if=" frontpage && frontpage.htmlText != null"
class="row container-wrap">
<div
class="seo-container col-lg-6"
@click="openSeo"
:class="{ 'is-open': seoOpen }">
<div
class="seo-container__content"
v-html="frontpage.htmlText"
/>
</div>
</div>
```
解决方法
请尝试使用非自动关闭标签替换最后一个嵌套的“ div”:
<div class="seo-container__content" v-html="frontpage.htmlText"></div>
“ Div”是非无效的HTML元素,应带有结束标记。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。