I have looked at other samples of this problem, but I think this one is unique. Following is very simple code:
import wixData from 'wix-data';
$w.onReady(function () {
//TODO: write your page related code here...
$w("#regRepeater").onReady( () =>{
console.log("Dynamic dataset ready");
});
});
This is a registration form repeater app and I get the DatasetError only in preview mode with no log. In publish mode the app works perfectly, printing the console log. Anybody have an idea? I'm uncomfortable with this even if the problem is limited to preview mode.
Please post the editor URL of your site. Only authorized Wix personnel can get access to your site in the editor. Please include the name of the page involved.
If you are simply wanting your dataset to load with your page, then just use the code for it.
import wixData from 'wix-data'; $w.onReady( () => { $w("#myDataset").onReady( () => { console.log("The dataset is ready"); }); });
https://www.wix.com/corvid/reference/wix-dataset.Dataset.html#onReady
https://www.wix.com/corvid/reference/wix-dataset.DynamicDataset.html#onReady
Just make sure that you have the dataset setup on your page properly and that the name of your dataset is #regRepeater