That issue is coming because of the end of the ‘getKeywordsPerProduct’ function. It’s letting the rest of the code know the type of variable quizProducts is, which is causing those Type error messages.
That variable name seems to be making the error popup, because in the getKeywordsPerProduct function, you’re using the same variable productsKeywords to handle the query result and to return as the new array. To solve it, try changing the name of the variable from
let productsKeywords = await wixData.query //…
to: let results = await wixData.query //…
and then update the following line in the function to ‘let productsKeywords = results.items;’
That should remove those errors.