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

Compiles error using slot inside component with specifying lang of <template> as empty string. #3046

Closed
ro-n opened this issue Jan 18, 2021 · 1 comment · Fixed by #3051
Closed
Labels
🍰 p2-nice-to-have Priority 2: this is not breaking anything but nice to have it addressed. 🐞 bug Something isn't working scope: compiler

Comments

@ro-n
Copy link

ro-n commented Jan 18, 2021

Version

3.0.5

Reproduction link

https://codesandbox.io/s/sweet-pike-uof96

Steps to reproduce

https://codesandbox.io/s/sweet-pike-uof96

<template lang="">
  <hello-world>
    <template v-slot:default> Slot Message </template>
  </hello-world>
</template>

What is expected?

Vue compiles with default template language.

What is actually happening?

VueCompilerError: Invalid end tag.


Btw, if attributes resemble <template lang=""></template> is not allowed, the compiler should tell something relevant.

It costs me some time to figure it out with Invalid end tag point to the end of slot-contained-component (</hello-world>).

@LinusBorg LinusBorg added 🐞 bug Something isn't working 🍰 p2-nice-to-have Priority 2: this is not breaking anything but nice to have it addressed. scope: compiler labels Jan 18, 2021
@cc-max
Copy link

cc-max commented Jan 19, 2021

After doing some verification, an error was reported in helloworld.vue, ‘The template root disallows'' elements ’

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🍰 p2-nice-to-have Priority 2: this is not breaking anything but nice to have it addressed. 🐞 bug Something isn't working scope: compiler
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants