Vue Router with vue-class-component: next function does not accept callback option
Please move your beforeRouteEnter hook to @Component
decorator
@Component({ template: '<div></div>', beforeRouteEnter(to, from, next){ next(vm => { alert('Entering Foo'); }); }})