Hello,
I’m trying to create a dashboard page that syncs files with my company’s Dropbox. I’ve installed the Dropbox module and set up the basic functionality of the page. It works well when I view it in Preview mode. However, I just tried to publish the site, and none of the page code runs. After some playing around, it seems that there’s one line of code that prevents the rest of the script from running:
import dropbox from 'dropbox';
If I comment that line out, everything else (not related to Dropbox) functions well. If I include only that line and some basic test code, it still hangs:
import dropbox from 'dropbox';
// This won't ever run
$w.onReady(() => {
$w('#image1').hide();
})
Why would this cause the code to cease running on a published dashboard page but not Preview mode? Is this a bug? Is there some other way that it needs to be programmed? Any feedback would be really appreciated.