Ember CLI Hook/Event Error
问题 I'm using Ember CLI 1.13 and I'm attempting to create a router mixin in an addon that binds to the willTransition hook, but the issue I'm encountering is not limited to this event. At this point the mixin looks like such: import Ember from 'ember'; export default Ember.Mixin.create({ genericFunction: function(transition) { console.log('--- generic function ---'); }.on('willTransition') }); When attempting to run the dummy app utilising the mixin, I get the following error: Uncaught TypeError: