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

How to use this module in next js? #23

Open
crypmancer opened this issue Nov 21, 2024 · 1 comment
Open

How to use this module in next js? #23

crypmancer opened this issue Nov 21, 2024 · 1 comment

Comments

@crypmancer
Copy link

crypmancer commented Nov 21, 2024

image

Here is my code

image

But I am getting the same error as in that image.
Plz help me how to use this one.

@jleider
Copy link
Member

jleider commented Nov 21, 2024

Your worker source has to be the pdfjs library.

<Viewer
  documentId="doc-1"
  documentUrl="/path/to/your/document.pdf"
  workerSrc="/public/path/to/pdfjs/pdf.worker.min.mjs"
/>

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

No branches or pull requests

2 participants