-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
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
Warn when using inline-template attribute but no children #9361
Labels
Comments
posva
changed the title
"Uncaught TypeError: Cannot read property 'type' of undefined" when using inline-template without a child
Warn when using inline-template attribute but no children
Jan 23, 2019
We could emit a dev-only warning for this |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@posva very sorry about it, I think I understood it a little wrong, my english is not so good :/, anyway i think i can do this issue if possible |
13 tasks
Itisfilipe
added a commit
to Itisfilipe/vue
that referenced
this issue
Jan 24, 2019
13 tasks
yyx990803
pushed a commit
that referenced
this issue
Feb 4, 2019
This was referenced Aug 29, 2019
This was referenced Sep 22, 2019
Lostlover
pushed a commit
to Lostlover/vue
that referenced
this issue
Dec 10, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
2.5.22
Reproduction link
https://codesandbox.io/s/r71q8py7mp
Steps to reproduce
Open https://codesandbox.io/s/r71q8py7mp and read console log
What is expected?
Don't execute following code from
genInlineTemplate
whenel.children.length !== 1 || ast.type !== 1
is true becauseast
is undefined.What is actually happening?
Executing
The text was updated successfully, but these errors were encountered: