# Am getting this error when loading WebViewer with Vue application

**URL:** <https://pdfjs.community/t/am-getting-this-error-when-loading-webviewer-with-vue-application/1319>\
**Category:** Technical Support\
**Tags:** pdfjs-express\
**Created:** [January 21, 2022, 5:44am UTC](https://pdfjs.community/t/am-getting-this-error-when-loading-webviewer-with-vue-application/1319 "2022-01-21T05:44:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![user63](https://avatars.discourse-cdn.com/v4/letter/u/49beb7/32.png) [@user63](https://pdfjs.community/u/user63)\
**Post date:** [January 21, 2022, 5:44am UTC](https://pdfjs.community/t/am-getting-this-error-when-loading-webviewer-with-vue-application/1319/1 "2022-01-21T05:44:21Z")

</div>

**Which product are you using?**  
PDF.js Express Plus

**PDF.js Express Version**  
webviewer.min.js?b018:1 Uncaught (in promise) TypeError: Cannot read properties of null (reading ‘addEventListener’)

**Detailed description of issue**  
Am getting this error, and am using PDF.js Express Plus Licenses with Vue .

**Expected behaviour**  
 ![image](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/1X/95f5485be0d905e7e10ac3b0bc6c0ff0a8b622e8.png)  
oad://loAEQfM9MkwEdgu5LNaICkX5yR2.png)

**Does your issue happen with every document, or just one?**  
All documents

**Code snippet**

div { width: 100%; height: 100vh; }

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/1X/ffbcd25c7d423db8d5acd5db201c272f4db306dd.png) [@system](https://pdfjs.community/u/system)\
**Post date:** [January 21, 2022, 5:44am UTC](https://pdfjs.community/t/am-getting-this-error-when-loading-webviewer-with-vue-application/1319/3 "2022-01-21T05:44:26Z")

</div>

**Hello, I’m Ron, an automated tech support bot 🤖**

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:

Guides:
- [Migrating from PDF.js Express to PDFTron - 3. Change initiation](https://pdfjs.express/documentation/learn-more/pdfjs-express-to-pdftron.8#3.-change-initiation)
- [Integrating PDF.js Express Plus with Vue.js - Sample overview](https://pdfjs.express/documentation/get-started/vue#sample-overview)
- [Adding your license key - PDF.js Express Plus License Keys](https://pdfjs.express/documentation/get-started/add-license-key#pdf.js-express-plus-license-keys-<span-class='plus'></span>)

APIs:
- [PDF.js Express Utilities](https://pdfjs.express/api/utils/index.html#__anchor)
- [UndefinedgetInstance( [element])](https://pdfjs.express/api/global.html#getInstance__anchor)
- [Core.AnnotationManager - isAnnotationRedactable(annotation)](https://pdfjs.express/api/Core.AnnotationManager.html#isAnnotationRedactable__anchor)

Forums:
- [Can I remove pdfjs.express watermark from viewer?](https://pdfjs.community/t/can-i-remove-pdfjs-express-watermark-from-viewer/1073/5)
- [Failed xfdf downloading](https://pdfjs.community/t/failed-xfdf-downloading/1174/1)
- [Is it possible to hide authentication key GET api from network?](https://pdfjs.community/t/is-it-possible-to-hide-authentication-key-get-api-from-network/562/1)

---

<div class="post-metadata">

**Author:** ![user66](https://avatars.discourse-cdn.com/v4/letter/u/b487fb/32.png) [@user66](https://pdfjs.community/u/user66)\
**Post date:** [January 24, 2022, 10:47am UTC](https://pdfjs.community/t/am-getting-this-error-when-loading-webviewer-with-vue-application/1319/4 "2022-01-24T10:47:24Z")

</div>

Hi!  
I am using react.js and typescripts, facing the same issue. would be great if give us the solution for both the react and the vue.js.  
Thanks,
