Replies: 1 comment
-
I was able to answer my own question. I must import { Document, Page, pdfjs } from "react-pdf"; rather than use Dynamic Imports of Document and Page. Read the instructions for this module and follow every step or it will not work! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I followed all the instructions and got react-pdf working with my application. However, I have the following issue:
When I use App Router without dynamic routes my react-pdf code works fine and loads pdfs. However, when I take the same code and use a dynamic route it fails. It says failed to load and Unhandled Runtime Error
SyntaxError: expected expression, got '<'
Anyone else encountered this issue?
Beta Was this translation helpful? Give feedback.
All reactions