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
CodePudding user response:
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')
}
}