Code that’s been working for a year has stopped working today. The issue stems from using wixDats. I created a simple function, and it seems like even the most basic, simple queries on wixData aren’t working.
This is the type of errors I get in the developes tools log: “_wixData.default.query(…).limit is not a function” _wixData.default.query(…).find is not a function
Hi! It is possible that the error you are seeing is occurring because the wixData module is not properly imported or because the query function is not being called correctly.
Thank you for trying to help, but the code you wrote is exactly the same as mine (I don’t see any difference).
I used:
import wixData from ‘wix-data’;
To import the module and called it just like you did.
I genuinely don’t see the difference in the code you suggested. Can you point it out?
I did copy and paste the code you wrote, but it’s exactly the same, so I’m getting the same error. Keep in mind that code has been working for 6 months straight and stopped working yesterday.