When creating circle or complex shape annotations get "ReferenceError: _super is not defined"

Which product are you using?
PDF.js Express Plus

PDF.js Express Version
8.7.0

Detailed description of issue
When I create an annotation other than free-hand or rectangle, for example a circle, I get an error in the console.

webviewer-core.min.js:709 Uncaught (in promise) ReferenceError: _super is not defined
    at Ea.Dh (webviewer-core.min.js:709:136)
    at gh.kga (webviewer-core.min.js:460:136)
    at ih (webviewer-core.min.js:13:46)
    at gh.lx (webviewer-core.min.js:11:167)
    at kh.next (webviewer-core.min.js:13:327)
    at ua (webviewer-core.min.js:14:43)

Expected behaviour
It suppose to export my annotations in XML which I then save in my database

Does your issue happen with every document, or just one?
Every document

Link to document
{Provide a link to the document in question if possible}

Code snippet

      // EVENT annotation changed ----------------------------------
      annotationManager.addEventListener(
        "annotationChanged",
        (_annotations, _action, { imported }) => {
          if (imported) {
            return;
          }
          this.showSavingAlert();
          async function save(saveAnnotations) {
            const XMLAnnotations = await annotationManager.exportAnnotations(); // Break at this line
            await saveAnnotations(XMLAnnotations);
          }
          save(this.saveAnnotations);
        },
      );

Hi Tristan,

Thank you for contacting pdf.js express forums,

Please try this build:
https://pdftron.s3.amazonaws.com/custom/ID-zJWLuhTffd3c/WebViewer/PDFJSExpress-8.7.0-36309-2.zip

Best regards,
Kevin Kim


Share how you are using PDF.js Express in your organization you could win a $500 Amazon gift card. All participants will receive 6 months of PDF.js Express+ for free. Learn more here