Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

meta components don't render within pug #13

Open
caikan opened this issue Mar 15, 2022 · 2 comments
Open

meta components don't render within pug #13

caikan opened this issue Mar 15, 2022 · 2 comments

Comments

@caikan
Copy link

caikan commented Mar 15, 2022

Environment


  • Operating System: Linux
  • Node Version: v16.12.0
  • Nuxt Version: 2.16.0-27358576.777a4b7f
  • Package Manager: [email protected]
  • Builder: webpack
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Reproduction

https://codesandbox.io/s/meta-components-mfm825-mfm825?file=/pages/index.vue

/index.vue

<template lang="pug">
div
  Html.index-class(index-html-attr)
    Head
      Title index title
  h1 hello index
  div: nuxt-link(to="/foo") foo
</template>

/foo.vue

<template lang="pug">
div
  Html.foo-class
    Head
      Title foo title
      Script(src="/foo-script-nested-in-html-tag.js")
  Script(src="/foo-script-out-of-html-tag.js")
  h1 hello foo
  div: nuxt-link(to="/") index
</template>

Describe the bug

The repro demonstrates several bugs:

  • Html tag's class not work.
  • Title not work.
  • Script nested in Html not work

Additional context

No response

Logs

[Vue warn]: "class" is a reserved attribute and cannot be used as component prop.
[Vue warn]: "is" is a reserved attribute and cannot be used as component prop.
[Vue warn]: "slot" is a reserved attribute and cannot be used as component prop.
[Vue warn]: "style" is a reserved attribute and cannot be used as component prop.
@danielroe
Copy link
Member

I think this is likely the same issue that is being solved in unplugin/unplugin-vue2-script-setup#124.

cc: @antfu

@danielroe danielroe transferred this issue from nuxt/framework Apr 13, 2022
@danielroe danielroe closed this as not planned Won't fix, can't repro, duplicate, stale Jul 9, 2022
@danielroe danielroe reopened this Jul 9, 2022
@danielroe danielroe changed the title meta components bugs meta components don't render within pug Jul 9, 2022
@danielroe
Copy link
Member

Reproduction: https://stackblitz.com/edit/github-nubkan.

Note that this is likely not a bug in Nuxt Bridge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants