Closed RonyKordahi closed 1 year ago
I fear you may have run into this issue: https://github.com/annotorious/annotorious/issues/202#issuecomment-1221365817
The bad new is that it's pretty clunky to do custom React widgets. This is likely not going to change until Annotorious v3 is out. (Already working on it, but still at least 6 months away.) Once Annotorious 3 is out, there will be proper framework wrappers out of the box (for React and Svelte from my end, but hopefully other frameworks too from contributors).
Ah that makes sense. No worries then!
I'm back with another head scratcher!
I've been trying to set up a widget to have a custom popup when I create an annotation, and I've followed the guide in the documentation but I can't set it in my
index.html
file so I've been trying to set it through my React component like so:The code for
HelloWorldWidget
is copy pasted from the guide linked above.When I try to create an annotation I get met with this error message:
Not quite sure what to do here. Any ideas?