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 ()
at Home.Component._init (vendors.app.js:2672)
at Home.Vue (commons.app.js:16802)
at new Home (inspire.js:64)
at collectDataFromConstructor (vendors.app.js:2692)
at data (vendors.app.js:2767)
at collectData (inspire.js:28)
at VueComponent.data (inspire.js:111)
at VueComponent.Component.options.data (app.js:3171)
at getData (commons.app.js:16467)
I use Nuxt + typescript and run with 'universal' mode.
I got error when I refresh browser with this code
Is don't have any error when I try with
error TypeError: Cannot convert undefined or null to object at Function.getOwnPropertyNames ()
at Home.Component._init (vendors.app.js:2672)
at Home.Vue (commons.app.js:16802)
at new Home (inspire.js:64)
at collectDataFromConstructor (vendors.app.js:2692)
at data (vendors.app.js:2767)
at collectData (inspire.js:28)
at VueComponent.data (inspire.js:111)
at VueComponent.Component.options.data (app.js:3171)
at getData (commons.app.js:16467)