Cannot read properties of undefined (reading 'appendChild') at o.createNotificationPopup

I always get this error every time I load the PDF in the PDF viewer for the first time in my browser.

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'appendChild')
at o.createNotificationPopup (pdf-editor-DzDyRoS7.js:350:119750)
at o.openNotificationPopup (pdf-editor-DzDyRoS7.js:350:120905)
at o.onControlError (pdf-editor-DzDyRoS7.js:350:290027)
at o.createAjaxRequest (pdf-editor-DzDyRoS7.js:350:116919)
at pdf-editor-DzDyRoS7.js:350:107203


The error seems to be coming from this line.

o.prototype.createNotificationPopup = function(e) {

        var t = this;

        if (!this.isMessageBoxOpen) {

            var A = O("div", {

                id: this.pdfViewer.element.id + "_notify",

                className: "e-pv-notification-popup"

            });

            !d(this.pdfViewer.pageOrganizer) && this.pdfViewer.pageOrganizer.dialogDivElement ? this.pdfViewer.pageOrganizer.dialogDivElement.appendChild(A) : this.viewerContainer.appendChild(A),


The error is trigged when loading a document to the viewer.
viewer.load('document.pdf', '')


Here is a sample setup of my pdf viewer
https://jsfiddle.net/gilbertdim/Lh0gz7ow/31/


1 Reply

VS Venkada Subramanian Durai Syncfusion Team May 18, 2026 12:28 PM UTC

Hi Gilbert Dimaano,

Thank you for the update. This issue typically occurs when a PDF document is loaded before the necessary resources in the PDF Viewer are fully initialized. To resolve this, we recommend loading the PDF document within the 
resourcesLoaded event using the load API.

 

We’ve attached the UG for how to use the resourcesLoaded event to properly load the PDF document. Please review the UG and check if it resolves the issue. If you have any questions or need further assistance, feel free to reach out.

 

UG for when to load PDF documents


Regards,
Venkada Subramanian D


Loader.
Up arrow icon