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

Uncaught (in promise) Error at PdfHighlighter.init #307

Open
christophhalbi opened this issue Feb 5, 2025 · 1 comment
Open

Uncaught (in promise) Error at PdfHighlighter.init #307

christophhalbi opened this issue Feb 5, 2025 · 1 comment

Comments

@christophhalbi
Copy link

From time to time I get:

Uncaught (in promise) Error: !
at PdfHighlighter.init (react-pdf-highlighter.js?v=7deb8492:2123:13)

Thrown here:

if (!this.containerNodeRef.current) {
    throw new Error("!");
}

Am I doing anything wrong?

@christophhalbi
Copy link
Author

Seems like a timing issue to me - checking containerNodeRef.current in init before ref is set in render

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

1 participant