-
-
Notifications
You must be signed in to change notification settings - Fork 901
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
Please help testing next React-PDF release! #748
Comments
This is about #659. I am using I upgraded react-pdf to 5.3.0-beta:
yarn.lock
Importing in TS like this:
or like this:
Still doesn't work. The error is
This fix #659 (comment) worked in react-pdf 5.2.0. This also helps in react-pdf 5.3.0-beta |
Regarding #657 - it's working for me with Next.js now 👍 Thank you! |
1 similar comment
Regarding #657 - it's working for me with Next.js now 👍 Thank you! |
I get the following warning now:
Using Next.js and loading
Otherwise |
@wojtekmaj Great, thanks! |
React-PDF Just tested and it works very well in both Webpack and CRA using Webpack instructions. |
@wojtekmaj I couldn't find any updated instructions at the v5.3.0-beta.2 README file. How does the worker line CDN change for CRA? |
@po5i I just updated the docs: https://github.com/wojtekmaj/react-pdf#create-react-app tl;dr For CRA:
|
It works fine on my project running on Next.js. I am using 5.3.0-beta.3. Thanks. |
Also had the same issue listed here: #613 (comment) Thanks @wojtekmaj |
My project is running on Next.js. I am using 5.3.0-beta.3 version but my document does not load without any errors. It just shows a message that says Loading PDF…. |
Have you configured it as described under https://github.com/wojtekmaj/react-pdf#standard-browserify-and-others? Any errors in the console? |
Thank you so much! My problem is resolved :) |
FYI, I was getting this error with ./node_modules/worker-loader/dist/cjs.js!./node_modules/react-pdf/dist/esm/pdf.worker.entry.js
TypeError: Cannot read property 'version' of undefined
> Build error occurred
Error: > Build failed because of webpack errors
at /home/jplew/Sites/greenflower/lxp/node_modules/next/dist/build/index.js:17:924
at async Span.traceAsyncFn (/home/jplew/Sites/greenflower/lxp/node_modules/next/dist/telemetry/trace/trace.js:6:584) using this code:
Ever since updating to Framework: Next.js 10 |
I see that in general nothing horrible has happened with the beta, so I released v5.3.0 officially. Thanks for your feedback! |
Great! Thank you @wojtekmaj! |
Folks,
React-PDF 5.3.0 is just around the corner, with several exciting updates:
This should resolve Gatsby build error - window is not defined #657 and "export 'EventBus' was not found in 'pdfjs-dist/lib/web/ui_utils' #659.
Please help me with testing v5.3.0-beta.2 by:
Please comment what you checked and whether your test was successful.
Your help is invaluable. Thank you in advance!
The text was updated successfully, but these errors were encountered: