wix Editor Errors

hello someone help me, Wix Velo Editor stops loading codes on my MasterPage.JS and i noticed this

import wixUsers from 'wix-users';
import wixLocation from 'wix-location';
import wixWindow from 'wix-window';

$w.onReady(function () {
 

    $w("#SelectHome").hide();
    $w("#Selectprofile").hide();
        
    

    $w("#profilebutton").onClick( (event) =>{
        wixWindow.openLightbox("Member Login Bar");
        $w("#Selectprofile").show()
        $w("#profilebutton").hide()
    }
    
        

    

if (wixUsers.currentUser.loggedIn) {
$w('#loginbutton').hide();

}
else {$w('#profilebutton').hide();
$w("#SelectHome").hide();
$w("#Homebutton").hide();}

}
);  

});