Am getting this error when loading WebViewer with Vue application

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

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

Code snippet

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

Hello, I’m Ron, an automated tech support bot :robot:

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


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.