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

[BUG] cant use on NEXT.JS #73

Open
helight59 opened this issue Apr 9, 2021 · 1 comment
Open

[BUG] cant use on NEXT.JS #73

helight59 opened this issue Apr 9, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@helight59
Copy link

Describe the bug
A clear and concise description of what the bug is.

How to Reproduce
Steps to reproduce the behavior:

  1. add
    <PDFViewer document={{ url: 'https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf', }} />
    on component.
  2. Run app
  3. Watch logs on terminal

Screenshots
image

Details (please complete the following information):

  • Device: [e.g. Desktop]
  • OS: [iOS11.2.3]
  • Browser [chrome latest]
@helight59 helight59 added the bug Something isn't working label Apr 9, 2021
@dantman
Copy link

dantman commented Apr 21, 2021

Also cannot be used in CRA.

This appears to be because the library hardcodes the Webpack specific loading for PDF.js. It doesn't allow you to do this yourself and I'm not sure it properly loads the cmaps.

react-pdf handles this by letting you configure PDF.js as you need.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants