Skip to content

[2.0.0-rc.1] Improve error message when function doesn't exist for v-on #3430

@async0x42

Description

@async0x42

For example: @chartclick="onChartClicked", if there is no: methods: { onChartClicked () { ...etc } }, then vuejs will report something like:

vue.common.js:1406 Uncaught TypeError: o.fn is not a function
(anonymous function) @ vue.common.js:1406
Vue.$emit @ vue.common.js:2142

I think there should be an error message as this isn't very clear that the method is missing.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions