-
-
Notifications
You must be signed in to change notification settings - Fork 902
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
Works locally, but on server preview shows loading ... and doesnt change. #371
Comments
No requests at all? Hmmm, did |
Any errors in the console? Any network errors? Try and hook to |
A similar thing is happening to me.
No request is being made to get the worker. |
Worker has been built built separately, outside of main entry and not included or referenced from main.js and not linked from react-pdf. |
Did anyone figure out how to fix this? |
The following worked for me in webpack v4 production build:
For the webpack-dev-server we went with:
|
@cbaron That worked thanks |
@cbaron How did you do that? Where can I put these different imports? |
In
|
It works as expected when i run locally. But on my server it keeps saying loading PDF ...
Also locally i see there is a get request to the url to get the pdf file, but on the server there is no request to get the pdf from url.
Code:
Local device:
Server:
and no requests to fetch pdf.
The text was updated successfully, but these errors were encountered: