Jors Mantilla
Jors Mantilla

Reputation: 41

NUXT webpack "$attrs is readonly","$listeners is readonly","Avoid mutating a prop directly"

i am using NUXT and i have the following errors after installing VueFileAgent.

"$attrs is readonly","$listeners is readonly","Avoid mutating a prop directly"

I was reading and the community say that I should modify webPack, but in Nuxt I don't know how to do it


{
    resolve: {
        alias: {
            'vue': path.resolve('./node_modules/vue')
        }
    },
}

does anyone know how to fix it? Thank you

Upvotes: 2

Views: 384

Answers (1)

Jors Mantilla
Jors Mantilla

Reputation: 41

Fix my problem by adding the following to nuxt.config

 build: {
    extend (config) {
      config.resolve.alias.vue = path.resolve(__dirname, 'node_modules/vue/dist/vue.runtime.esm.js')
    }
  }

Upvotes: 2

Related Questions