Nuxt Async Data not showing return data

Do you see this .then(querySnapshot => { ?

You are returning your result to an callback function. Rewrite it like this

async asyncData({ params }) {
    console.log("params ...");
    let asyncDataDescription = "";
    let querySnapshot = await firebase
      .where("ytid", "==",
    querySnapshot.forEach(doc => {
       asyncDataDescription =;
    console.log("description fdkjfdk");
    return { aSyncDescription: asyncDataDescription };

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top