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

Warning when emitting custom event on template #9418

Comments

@henriqemalheiros
Copy link

Version

2.6.0

Reproduction link

https://github.com/henriqemalheiros/vue-bug-report-event-emit-template

Steps to reproduce

  • Clone the repo;
  • Run yarn install;
  • Run yarn run serve;
  • Open http://localhost:8080/;
  • Open browser console;
  • Click on "Click me ($emit on method)";
  • "custom click triggered" is printed on the console;
  • Click on "Click me ($emit on template)";
  • "custom click triggered" is printed on the console;
  • "[Vue warn]: Property or method "then" is not defined on the instance but referenced during render." is also printed on the console.

What is expected?

No warning should be thrown.

What is actually happening?

A warning is thrown.


Maybe related to #8297.

@henriqemalheiros henriqemalheiros changed the title Error when emitting custom event on template Warning when emitting custom event on template Feb 4, 2019
@yyx990803
Copy link
Member

Just a note - please avoid build setups when the bug can easily be reproduced using a simple jsfiddle or codepen.

@henriqemalheiros
Copy link
Author

I tried, but the warning wasn't reproducible without a build setup.

@jvbianchi
Copy link

jvbianchi commented Feb 4, 2019

There is a reproduction in #9419 (duplicated issue)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment