Please give a brief summary of your issue: PDF viewer working fine on staging as well as local but giving 404 not found on production using React js
Please describe your issue and provide steps to reproduce it:
PDF viewer working fine on staging as well as local but giving 404 not found on production using React js
Please provide a link to a minimal sample where the issue is reproducible:
Can you confirm that the static lib folder for WebViewer was also deployed? I was looking for the network requests and I don’t quite see it despite seeing the WebViewer iframe mounted:
You might also want to compare the errors and network requests to your staging environment to see what is missing.
I also ran into this error:
It seems you are mounting WebViewer more than once. I would recommend hiding WebViewer and showing it when you need it to avoid this: PDFTron Systems Inc. | Documentation.