Static GitHub Issues

[1105] Please Help! router-view vs nuxt component

prev: Load component from <script> tag
next: DEBUG environment overridden alpha.5

Hello there,

I am using the "nuxt" component to embed route components in a layout but it seems that events from v-on are not being listened to.

This is something that is expected to work but doesn't:

<nuxt v-on:some-event="doSomething()" />

Should I be using \<router-view> instead? When using \<router-view>, events are picked up but there is an error in the console that reads

[Vue warn]: Error in mounted hook: "TypeError: Cannot set property '$loading' of undefined"

(found in <Root>)

Thank you very much! 😄

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c968">#c968</a>)</em></sub></div>