Sanjar Barakayev
Sanjar Barakayev

Reputation: 109

Error in chunk-content-script in Nuxt 3 app

Describe the bug: I do not know when this error appeared. I want to fix this, but I cannot handle these errors. What is chunk-content-scripts? How handle such kind of errors?

I've tried to handle with the following:

onErrorCaptured((error) => {
  console.error(error)
})

And with error-handler.ts in plugins:

export default defineNuxtPlugin((nuxtApp) => {
  nuxtApp.vueApp.config.errorHandler = (error, instance, info) => {
    console.log('~: ', error, instance, info)
  }

  // Also possible
  nuxtApp.hook('vue:error', (error, instance, info) => {
    console.log('~2: ', error, instance, info)
  })
})

But none of them fired.

Image of error:

enter image description here

I also tried to comment out all in the app.vue, but the error still appears in the console

Upvotes: 2

Views: 744

Answers (1)

The ModHeader chrome extension disabling fixed this issue for me

Upvotes: 2

Related Questions