A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/vuejs/vue/issues/6703 below:

Cannot read property 'type' of undefined · Issue #6703 · vuejs/vue · GitHub

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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4