Hi I’m getting an error message “TypeError: Error.captureStackTrace is not a function” when trying to use wixData.query. I have tried everything I can think of but it just will not work. My code is as follows:
return wixData.query(“members”) // error message is showing here
.eq(“userId”, userId)
.and(“role”, “hpd”)
.find()
.then((results) => {
console.log(results + " yay again")
thank you