Using Corvid Web Module in a Custom Element

Is it possible for a custom element that’s written as a web component to invoke a Corvid Web Module function?

Currently I’m calling a Corvid Web Module function inside the web component’s connectedCallback(). When I do this, I get the error " ReferenceError: Can’t find variable: elementorySupport".

If I try calling the same web module function inside a page’s code inside $w.onReady(), everything works fine. However, from what I can tell, a custom element that’s a web component doesn’t have access to $w.

Hi,

Currently it is not possible to use any of the Corvid APIs (including the $w() function) within a custom element. You can find more information about using the custom element here .

At Wix, we are constantly working to improve and update existing features and introduce new ones.The latest Corvid updates can be found here and the current Corvid Wishlist here .
See the current features in development here or request your own here .

Best regards,
Edward | Corvid Team