-
-
Notifications
You must be signed in to change notification settings - Fork 93
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'window is not defined' workaround #44
Comments
Hi, I'm afraid I'm not familiar with Wix Corvid. This seems related: https://www.wix.com/corvid/forum/community-discussion/window-js-object-access It says that DOM access is not possible? (I'm not clear how this works. But if DOM access is somehow shielded, then Annotorious wouldn't be able to work. Everything is done via dynamically generated SVG.) I'd suggest either digging for general instructions on using external JS libraries in Wix, or perhaps posting to Wix support forums? Chances of finding someone who's already experienced a similar issue will likely be a lot higher there. (Annotorious doesn't do anything special in this regard, so the same issue likely applies to other libraries, too.) Sorry for not having a better answer right now. If you manage to get this working, it would be great if you could post the solution here. |
Thanks @rsimon, I'll follow up in case I find a solution. |
Is there any news on this? Just linking in this (perhaps?) related issue: That issue relates to problems with server-side rendering - not sure if this is also what Wix Corvid does? |
Closing this due to 6 months+ of inactivity. |
I'm trying to get annotorious to work in Wix Corvid engine, but it seems that only importing the module already results in an attempt to access the
window
object, is there a workaround for that?This is the code:
And this is the error:
The text was updated successfully, but these errors were encountered: