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

Uncaught TypeError: Cannot read property 'type' of undefined #6703

Closed
eric-christian opened this issue Sep 27, 2017 · 1 comment
Closed

Uncaught TypeError: Cannot read property 'type' of undefined #6703

eric-christian opened this issue Sep 27, 2017 · 1 comment

Comments

@eric-christian
Copy link

Version

2.4.4

Reproduction link

https://jsfiddle.net/kybf1hg0/

Steps to reproduce

Bind a component to in input field while using inline-template.

What is expected?

A proper error message that tells the developer that inline-template components must have exactly one child element.

What is actually happening?

Uncaught TypeError: Cannot read property 'type' of undefined


Hello! :)

There is already a proper error message for this situation. It's just that the check for the number of child elements is implemented as > 1, maybe it should be != 1?

The method "genInlineTemplate" which throws the exception can be found here:

function genInlineTemplate (el, state) {

@chriscasola
Copy link
Contributor

I can take this one.

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

3 participants