mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 09:27:13 +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()
|
||||
.then(mountApp)
|
||||
.catch((err) => {
|
||||
err.message = '[nuxt] Error while mounting app: ' + err.message
|
||||
errorHandler(err)
|
||||
const wrapperError = new Error(err)
|
||||
wrapperError.message = '[nuxt] Error while mounting app: ' + wrapperError.message
|
||||
errorHandler(wrapperError)
|
||||
})
|
||||
|
||||
function componentOption(component, key, ...args) {
|
||||
|
Loading…
Reference in New Issue
Block a user