mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
fix(vue-app): add fallback context for error (#6854)
Co-Authored-By: Sébastien Chopin <seb@nuxtjs.com>
This commit is contained in:
parent
e3ba6c290d
commit
e91a441f2c
@ -120,7 +120,10 @@ async function createApp (ssrContext) {
|
||||
err = err || null
|
||||
app.context._errored = Boolean(err)
|
||||
err = err ? normalizeError(err) : null
|
||||
const nuxt = this.nuxt || this.$options.nuxt
|
||||
let nuxt = app.nuxt // to work with @vue/composition-api, see https://github.com/nuxt/nuxt.js/issues/6517#issuecomment-573280207
|
||||
if (this) {
|
||||
nuxt = this.nuxt || this.$options.nuxt
|
||||
}
|
||||
nuxt.dateErr = Date.now()
|
||||
nuxt.err = err
|
||||
// Used in src/server.js
|
||||
|
Loading…
Reference in New Issue
Block a user