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

**URL:** https://pdfjs.community/t/when-creating-circle-or-complex-shape-annotations-get-referenceerror-super-is-not-defined/2211
**Category:** Technical Support
**Tags:** pdfjs-express
**Created:** [December 1, 2022, 5:48am UTC](https://pdfjs.community/t/when-creating-circle-or-complex-shape-annotations-get-referenceerror-super-is-not-defined/2211 "2022-12-01T05:48:35Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![tristan](https://avatars.discourse-cdn.com/v4/letter/t/96bed5/32.png) [@tristan](https://pdfjs.community/u/tristan)
#### Post date: [December 1, 2022, 5:48am UTC](https://pdfjs.community/t/when-creating-circle-or-complex-shape-annotations-get-referenceerror-super-is-not-defined/2211/1 "2022-12-01T05:48:35Z")

</div>

**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.

```javascript
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**

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

```

---

<div class="post-metadata">

### Author: ![kkim](https://avatars.discourse-cdn.com/v4/letter/k/3ab097/32.png) [@kkim](https://pdfjs.community/u/kkim)
#### Post date: [December 1, 2022, 5:26pm UTC](https://pdfjs.community/t/when-creating-circle-or-complex-shape-annotations-get-referenceerror-super-is-not-defined/2211/3 "2022-12-01T17:26:11Z")

</div>

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](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](https://utm.guru/ueQNw)
