This code was running and now it's not...

Anybody can see the log od your console.
Perhaps you should show a screenshot?

Is this you whole code?
If so, it normaly never could work like this.

Where is your → onReady()-command, right after —>

 import wixData from"wix-data";

???

Something like this…

import wixData from "wix-data";

$w.onReady(async()=>{
 // Runs a query on the "sports" collection
    wixData.query("HS_Sports_Schedule") 
 // Query the collection for any items whose "sports" field contains  
 // the value the user selected in the dropdown
    .contains("sports", $w("#HSSchedule").value)
    .find()  // Run the query
    .then(res => {console.log(res.items)
 // Set the repeater data to be the results of the query.
        $w("#myRepeaterIDhere").data = res.items 
 // Set the table data to be the results of the query.
        $w("#myTableIDhere").rows = res.items
   });

    $w('#HSSchedule').onChange(()=>{
 //Add your code for this event here: 
        $w('#box3434').show();
        $w('#imageX888').hide();
    })
});