core icon indicating copy to clipboard operation
core copied to clipboard

[Vue warn]: Hydration node mismatch: - Client vnode: Symbol(Comment)

Open lixiaofa opened this issue 2 years ago • 2 comments

Vue version

3.2x

Link to minimal reproduction

https://github.com/lixiaofa/nuxt-app.git

Steps to reproduce

pnpm dev

This is the problem on the home page

What is expected?

no vue warn

What is actually happening?

image

System Info

-

Any additional comments?

lixiaofa avatar Dec 01 '22 05:12 lixiaofa

your reproduction is not minimal. Could you provide a demo without any third-party component?

edison1105 avatar Dec 02 '22 08:12 edison1105

your reproduction is not minimal. Could you provide a demo without any third-party component?

OK. If the third-party component is removed, another error will be reported.

This is the problem on the home page https://github.com/lixiaofa/nuxt-app.git

It should be the same type of error

@edison1105 @LinusBorg

lixiaofa avatar Dec 05 '22 02:12 lixiaofa

Not sure if my issue is related, but I get the same error if I use my PageMeta component with an empty template tag:

<template></template>
<script lang="ts" setup>
  useHead({ ... })
</script>

Solved by adding any comment inside the template <template><!-- No content --></template>

Laruxo avatar Jan 16 '23 13:01 Laruxo

Closing as a reproduction still hasn't been provided

LinusBorg avatar Mar 15 '23 15:03 LinusBorg