nuxt: v-html not working on dynamic tag
Versions
- nuxt: Latest version: 3.0.0-27457132.e67ed55
- node: 14.18.0
Reproduction
https://codesandbox.io/s/nuxt-component-is-html-qfoqdk?file=/app.vue
Steps to reproduce
Create a block with :is and try to use v-html directive
What is Expected?
HTML rendered inside dynamic tag (worked well in vue cli spa project)
What is actually happening?
HTML inside dynamic tag not rendering.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 4
- Comments: 16 (6 by maintainers)
@danielroe please reopen the issue. I’m still facing the same issue on nuxt
3.7.2
. I had thev-html
perfectly working onNuxt2
, but performing the migration right now and I can reproduce the same issue as previous contributors.Ah! Interesting.
Vue3 SSR Starter has these issue too: https://stackblitz.com/edit/github-bd1lay?file=src/components/Testvue.vue
But not the offical Vue 3 Playground: https://sfc.vuejs.org/#eNp9ksFugzAMhl/FyqWbVODO0k57gx16zIWBKanAiRKXTqp49znAJrpJQwglv60P+7fv6s37fLyiKpWOdbCeISJf/dGQYTt4FxjuELCFCdrgBthJ8s4QwBo8YWSRlqBRebEKCWrUiyFdLNxEJM04+L5ilBtAtjzpqL85XJ0PRjV2NAoYP1ku2h9PnY0gryPoXdUAOamzczehS6kKikeeLn7+o/ZqqTQbKp9foiNp9Z6yzRqIRpUwK0mbyy7l0DH7WBZFbOvUyyXmLpyL1Fm4kliDOcYh+wjuFjEI2Kj9hlGIOGLIAlKDAcN/zF+pf7gJOxmapJWNuWliD27q2kk/hMRQ2ii+iZVizZh1PPTpKm6uVm38maeynTz0FaURJF8kaokxtFWN8B6cj4tRQn4tIXKwdJYRiyDsrSLlGqodxbQ9kg0H2MlMd/s5U3bpAA22lnCG6vl7fHp+XBc1fQHhGuYu
@danielroe Looks für me like a problem in Vite?!? The error is also present in the static generation in the nuxt. Unfortunately, I’m not sure exactly where the bug comes from and where I should set the issue. Vite, vite-vue-plugin, vue. A little bit confusing. Any Idea?
Thanks for your contribution to Nuxt! This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you would like this issue to remain open:
Issues that are labeled as
pending
will not be automatically marked as stale.Thanks Daniel!
Looks like an old bug with Vue 3 SSR that is still open 😕
https://github.com/vuejs/core/issues/6435