Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot read properties of undefined (reading '_on') #1170

Open
kamilru opened this issue Jan 12, 2025 · 1 comment
Open

Cannot read properties of undefined (reading '_on') #1170

kamilru opened this issue Jan 12, 2025 · 1 comment

Comments

@kamilru
Copy link

kamilru commented Jan 12, 2025

In angular 19, I have ng2-pdf-viewer 10.4.0

I'm using mat dialog.

  1. Open dialog with preview,
  2. Close dialog with preview.
  3. Open dialog with preview again.

Sometimes you need to repleace steps more time to get error

core.mjs:7195 ERROR TypeError: Cannot read properties of undefined (reading '_on')
at new PDFFindController (pdf_viewer.mjs:852:14)
at _PdfViewerComponent.initPDFServices (ng2-pdf-viewer.mjs:489:30)
at _PdfViewerComponent.setupViewer (ng2-pdf-viewer.mjs:512:10)
at _PdfViewerComponent.loadPDF (ng2-pdf-viewer.mjs:561:10)
at _PdfViewerComponent.ngOnChanges (ng2-pdf-viewer.mjs:390:12)
at _PdfViewerComponent.rememberChangeHistoryAndInvokeOnChangesHook (core.mjs:3979:10)
at callHookInternal (core.mjs:5008:10)
at callHook (core.mjs:5035:5)
at callHooks (core.mjs:4992:9)
at executeCheckHooks (core.mjs:4929:3)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@kamilru and others