TypeError: $w(...).expand is not a function??

@russian-dima
import wixData from ‘wix-data’ ;

export function search_click(event, $w) { //Button onClick event
$w( “#buildingdataset” ).setFilter(wixData.filter() //Set dataset to filter

        .contains( "location" , $w( "#locationDropdown" ).value)  // field key and dropdown 
        .between( "typicalFloorPlate" , parseFloat($w( "#dropdown4" ).value), parseFloat($w( "#dropdown3" ).value)))  // field key and dropdown 

    .then((results) => { 
        console.log( "Dataset is filtered" ); 
        $w( "#repeater" ).data = results; 
    }). **catch** ((err) => { 

        console.log(err); 
    }); 
    $w( "#repeater2" ).expand(); 
    } 

export function clear_click(event, $w) {
$w( ‘#clear’ ).onClick(() => {
$w( “#dropdown4” ).value = undefined
$w( “#buildingdataset” ).setFilter(wixData.filter()
.eq( ‘typicalFloorPlate’ , location))

}); 

$w( '#clear' ).onClick(() => { 
    $w( "#dropdown3" ).value =  **undefined** 
    $w( "#buildingdataset" ).setFilter(wixData.filter() 
        .eq( 'typicalFloorPlate' , location)) 

}); 

$w( '#clear' ).onClick(() => { 
    $w( "#locationDropdown" ).value =  **undefined** 
    $w( "#buildingdataset" ).setFilter(wixData.filter() 
        .eq( 'location' , location)) 

}); 

}

here’s our updated codes