Hey Petra!
You wrote this code snippet:
import wixLocation from 'wix-location';
$w.onReady(function () {
setTimeout(() => {
wixLocation.to("/main");
}, 1000);
});
On what page does this code appear?
Can you double check that the url “/main” is correct (typos are very common and can be hard to catch)?
From the error that you described and the fact the you say that site loads very slowly, it sounds like you have a coding error some where. Is this the only code on this page? Is this a copy-paste of that code?
Thanks,
J.