$prismic.api.query('') not working

I don't know what the problem is. This did work a couple of weeks ago. I got busy so I have had no time to code but I came back to my code and having $prismic.api.query('') as an empty string but I get undefined in the console log. I have tried everything. Also, when I use $prismic.api.getSingle('blog_post') I do get data but it only shows the post that was last uploaded and not every document.

This is my code in index.vue:

async asyncData({ $prismic }) {
const { data } = await $prismic.api.query('');
console.log('data', data);
return { data }
}

Hello @jzsbyt

Welcome to the Prismic community and thanks for posting to us.

In order to troubleshoot this issue, I need some more information:

  1. Could you please share a screenshot of the error that you are getting in the console?
  2. Could you please provide the URL of your repository? (You can send me a private message if you don't feel comfortable sending it here)

Thanks,
Priyanka

This thread has been closed due to inactivity. Flag to reopen.