mobx-vue
mobx-vue copied to clipboard
I got error when I use @Observer before @Component with Nuxtjs
I use Nuxt + typescript and run with 'universal' mode.
I got error when I refresh browser with this code
@Observer
@Component()
export default class Home extends Vue {
mounted () {
}
}
Is don't have any error when I try with
export default observer({
mounted () {
}
});
error TypeError: Cannot convert undefined or null to object
at Function.getOwnPropertyNames (
Could u pls provide a minimum reproduction with codesandbox?
https://codesandbox.io/s/github/Him-2C/nuxt-typescript-check-mobx
@kuitos
In page/index.vue
https://github.com/Him-2C/nuxt-typescript-check-mobx
solved with