I get this error on IE when leaving any page that has pdfviewerComponent in it. The Issue doesn't exist on chrome , edge and Firefox (Only IE).
IE version: 11.900.18362.0
sybcfusion pdf version : "@syncfusion/ej2-angular-pdfviewer": "^18.1.55",
Error Stack:
ERROR Error: Uncaught (in promise): TypeError: Unable to get property 'removeChild' of undefined or null reference
TypeError: Unable to get property 'removeChild' of undefined or null reference
at PdfViewerBase.prototype.destroy (https://localhost:44356/vendor.js:608859:9)
at PdfViewer.prototype.destroy (https://localhost:44356/vendor.js:619550:9)
at ComponentBase.prototype.ngOnDestroy (https://localhost:44356/vendor.js:96970:13)
at PdfViewerComponent.prototype.ngOnDestroy (https://localhost:44356/vendor.js:254403:9)
at callProviderLifecycles (https://localhost:44356/vendor.js:59541:9)
at callElementProvidersLifecycles (https://localhost:44356/vendor.js:59509:13)
at callLifecycleHooksChildrenFirst (https://localhost:44356/vendor.js:59499:17)
at destroyView (https://localhost:44356/vendor.js:67695:5)
at callViewAction (https://localhost:44356/vendor.js:67821:13)
at execComponentViewsAction (https://localhost:44356/vendor.js:67743:13)
"ERROR"
{
[functions]: ,
__proto__: { },
description: "Uncaught (in promise): TypeError: Unable to get property 'removeChild' of undefined or null reference
TypeError: Unable to get property 'removeChild' of undefined or null reference
at PdfViewerBase.prototype.destroy (https://localhost:44356/vendor.js:608859:9)
at PdfViewer.prototype.destroy (https://localhost:44356/vendor.js:619550:9)
at ComponentBase.prototype.ngOnDestroy (https://localhost:44356/vendor.js:96970:13)
at PdfViewerComponent.prototype.ngOnDestroy (https://localhost:44356/vendor.js:254403:9)
at callProviderLifecycles (https://localhost:44356/vendor.js:59541:9)
at callElementProvidersLifecycles (https://localhost:44356/vendor.js:59509:13)
at callLifecycleHooksChildrenFirst (https://localhost:44356/vendor.js:59499:17)
at destroyView (https://localhost:44356/vendor.js:67695:5)
at callViewAction (https://localhost:44356/vendor.js:67821:13)
at execComponentViewsAction (https://localhost:44356/vendor.js:67743:13)",
message: "Uncaught (in promise): TypeError: Unable to get property 'removeChild' of undefined or null reference
TypeError: Unable to get property 'removeChild' of undefined or null reference
at PdfViewerBase.prototype.destroy (https://localhost:44356/vendor.js:608859:9)
at PdfViewer.prototype.destroy (https://localhost:44356/vendor.js:619550:9)
at ComponentBase.prototype.ngOnDestroy (https://localhost:44356/vendor.js:96970:13)
at PdfViewerComponent.prototype.ngOnDestroy (https://localhost:44356/vendor.js:254403:9)
at callProviderLifecycles (https://localhost:44356/vendor.js:59541:9)
at callElementProvidersLifecycles (https://localhost:44356/vendor.js:59509:13)
at callLifecycleHooksChildrenFirst (https://localhost:44356/vendor.js:59499:17)
at destroyView (https://localhost:44356/vendor.js:67695:5)
at callViewAction (https://localhost:44356/vendor.js:67821:13)
at execComponentViewsAction (https://localhost:44356/vendor.js:67743:13)",
name: "Error",
promise: { },
rejection: { },
stack: "Error: Uncaught (in promise): TypeError: Unable to get property 'removeChild' of undefined or null reference
TypeError: Unable to get property 'removeChild' of undefined or null reference
at PdfViewerBase.prototype.destroy (https://localhost:44356/vendor.js:608859:9)
at PdfViewer.prototype.destroy (https://localhost:44356/vendor.js:619550:9)
at ComponentBase.prototype.ngOnDestroy (https://localhost:44356/vendor.js:96970:13)
at PdfViewerComponent.prototype.ngOnDestroy (https://localhost:44356/vendor.js:254403:9)
at callProviderLifecycles (https://localhost:44356/vendor.js:59541:9)
at callElementProvidersLifecycles (https://localhost:44356/vendor.js:59509:13)
at callLifecycleHooksChildrenFirst (https://localhost:44356/vendor.js:59499:17)
at destroyView (https://localhost:44356/vendor.js:67695:5)
at callViewAction (https://localhost:44356/vendor.js:67821:13)
at execComponentViewsAction (https://localhost:44356/vendor.js:67743:13)
at resolvePromise (https://localhost:44356/polyfil",
Symbol()_8.lhzs7dybhh8: undefined,
Symbol(INITIAL_VALUE)_j.lhzs7dybhh8: undefined,
Symbol(rxSubscriber)_i.lhzs7dybhh8: undefined,
task: { },
zone: { }
}
So please Advise , How to fix it , or If I need to add some polyfills to fix this.
Thanks,
Mohamed