mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
fix(vua-app): clone mount error to prevent mutating read-only error object (#5214)
This commit is contained in:
parent
648062c308
commit
37006f6267
@ -81,8 +81,9 @@ const errorHandler = Vue.config.errorHandler || console.error
|
|||||||
createApp()
|
createApp()
|
||||||
.then(mountApp)
|
.then(mountApp)
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
err.message = '[nuxt] Error while mounting app: ' + err.message
|
const wrapperError = new Error(err)
|
||||||
errorHandler(err)
|
wrapperError.message = '[nuxt] Error while mounting app: ' + wrapperError.message
|
||||||
|
errorHandler(wrapperError)
|
||||||
})
|
})
|
||||||
|
|
||||||
function componentOption(component, key, ...args) {
|
function componentOption(component, key, ...args) {
|
||||||
|
Loading…
Reference in New Issue
Block a user