renderError option in vue instance
The renderError option allows to provide an alternative render output when the default render function encounters an error. The error will be passed to renderError as the second argument. This is particularly useful when used together with hot-reload. This option is available only works in development mode.
renderError option in vue instance
 1 new Vue({
 2   render (h) {
 3     throw new Error('oops')
 4   },
 5   renderError (h, err) {
 6     return h('pre', { style: { color: 'red' }}, err.stack)
 7   }
 8 }).$mount('#app')
Privacy Policy
Terms of Service
Disclaimer
Contact us
About us