Skip to content

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

@ro-n

Description

@ro-n

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>).

Metadata

Metadata

Assignees

No one assigned

    Labels

    🍰 p2-nice-to-havePriority 2: this is not breaking anything but nice to have it addressed.🐞 bugSomething isn't workingscope: compiler

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions