Skip to content

Commit

Permalink
fix(vua-app): clone mount error to prevent mutating read-only error o…
Browse files Browse the repository at this point in the history
…bject (#5214)
  • Loading branch information
manniL authored and pi0 committed Mar 12, 2019
1 parent 648062c commit 37006f6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/vue-app/template/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 37006f6

Please sign in to comment.