# wix Editor Errors

**URL:** <https://forum.wixstudio.com/t/wix-editor-errors/10891>\
**Category:** Ask the community\
**Tags:** code, question\
**Created:** [January 1, 2022, 10:02am UTC](https://forum.wixstudio.com/t/wix-editor-errors/10891 "2022-01-01T10:02:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![eoofficecom](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/eoofficecom/32/27850_2.png) [@eoofficecom](https://forum.wixstudio.com/u/eoofficecom)\
**Post date:** [January 1, 2022, 10:02am UTC](https://forum.wixstudio.com/t/wix-editor-errors/10891/1 "2022-01-01T10:02:38Z")

</div>

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

 ![](https://us1.discourse-cdn.com/wix/original/3X/2/f/2f211a6e90075055f981153eb3b8aa64c2b23992.png)

```javascript
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();}

}
);  

});

```

---

<div class="post-metadata">

**Author:** ![J.D](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/j.d/32/7312_2.png) [@J.D](https://forum.wixstudio.com/u/J.D)\
**Post date:** [January 1, 2022, 6:39pm UTC](https://forum.wixstudio.com/t/wix-editor-errors/10891/2 "2022-01-01T18:39:47Z")

</div>

> **[\[SOLVED\] onReady() function throwing error on EVERY page | Velo by Wix](https://community.wix.com/velo/forum/coding-with-velo/onready-function-throwing-error-on-every-page)**
>
> I have hundreds of pages on my website which have been working fine. As of this morning, the onReady() function on EVERY page is throwing an error - Property 'onReady' does not exist on type '(selector: string) =\> any'.
> 
> The onReady() has a...
