[Vuejs]-NuxtJs Cannot recall this.$fetch() inside methods

0👍

I had this issue, and I found the answer.

the problem is that adding params to your fetch declaration breaks it (fetch({ store, error })). According to the docs, they shouldn’t be there, and you should be pulling them from this.$nuxt.context:

const { store, error } = this.$nuxt.context

Make these changes, and you’ll see it all magically working.

Leave a comment