-
-
Notifications
You must be signed in to change notification settings - Fork 861
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
Failed prop type: Expected pageNumber
to be less or equal to 10.
#959
Comments
Same issue observed, also using the wiki method {Array.from( new Array(numPages), (el, index) => ( <Page key={page_${index + 1}} pageNumber={index + 1}.... |
I got a similar error message when changing the file to view in my document component. Here's how it looks: Both So, setting Not sure if you have the same issue, but I hope it can help. |
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 14 days. |
I have facing same issue when I changing file from multi page to single page.
But only it happens when I change file form multi page to single page or single page to multi page. Warning: Failed prop type: Expected |
As described above by @marcusgahlin, this is due to the previous state not being cleared. I ran into the same issue, needed to clear the old page / numPages from the state before rendering the new document. It fixes itself after You could reset the (Note: you could try doing it in |
I don't think this is a bug with the library itself, because we actually are passing in an invalid pageNumber to the |
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 14 days. |
This issue was closed because it has been stalled for 14 days with no activity. |
Before you start - checklist
Description
I have a PDF, and it renders fine.
However, sometimes it shows the whole pdf and sometimes it gives this error and shows only 10 pages.
I can't reproduce it because it keep happening with the same exact pdf, but it is random.
Steps to reproduce
I only used this piece of code that I got from the wiki to show all the pages:
Expected behavior
It should load the whole pdf all the time.
Actual behavior
Loads 10 pages sometimes, but sometimes loads the whole pdf.
Additional information
No response
Environment
The text was updated successfully, but these errors were encountered: