You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Hi, I did set up react-pdf and it works perfectly, I did followed the instructions. But in development once I open a page that render a pdf file i get an error 404. Saying that a request for a path "/pdf.worker.js" has been done ( not by me volontary) and an error 404 is returned.
Anyone knows why this error and how to fix it? thanks
I built the app using create-react-app, react router and express.js
Seeing that pdf.worker.js request is done suggests me you're using default entry file (import ... from 'react-pdf'). That means you need to take care of copying pdf.worker.js by yourself. You have more options available - automatic config for Webpack and Parcel.
Description
Hi, I did set up react-pdf and it works perfectly, I did followed the instructions. But in development once I open a page that render a pdf file i get an error 404. Saying that a request for a path "/pdf.worker.js" has been done ( not by me volontary) and an error 404 is returned.
Anyone knows why this error and how to fix it? thanks
I built the app using create-react-app, react router and express.js
Steps to reproduce
Steps to reproduce the behavior:
You can see it live here: http://www.lostudenteim.it/materie-infermieristica/file-fisiologia-umana
Environment
"react": "^16.3.2",
"express": "^4.16.3",
The text was updated successfully, but these errors were encountered: