All of a sudden Wix doesn't think my page event handlers are properly exported when in fact they are - and onReady() is never called.

This morning while working on an Admin-only page to manage user data, I started getting warning statements like the following in the console when this page loads for every single page element where I have created an event handler. For example:

function search_click is registered as a static event handler but is not exported from the page code. Please remove the static event handler or export the function.

In fact, it Is written as exported:

export function search_click(event) {
    // This function was added from the Properties & Events panel. To learn more, visit http://wix.to/UcBnC-4
    // Add your code for this event here:
    $w("#sitmembersdataset").setFilter( wixData.filter()
        .startsWith("firstName",$w("#firstName").value)
        .and(
            wixData.filter()
            .startsWith("lastName",$w("#lastName").value)
            .and(
                wixData.filter()
                .startsWith("email",$w("#emailAddress").value)
            )
        )
    );
}

What’s going on? The page is also not executing properly now - onReady() is never called.

OK - I figured out the problem, although this is one of those errors where the message has nothing to do with the actual problem. The problem was I mistakenly performed an import into the page code of a function in my back-end http-functions.js file. That completely threw a wrench into the processing of that page.

Once I refactored that import into using a .jsw file instead (which in turn made the call to the back-end file I needed to call), all is now well.

Note to the dev guys - it would be helpful to have such an illegal import flagged by the lint if possible. The only way I found this was by completely logging out, then logging back in and attempting to access this page, and I saw a new error in the logs that pointed to the real problem.