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
You can see message in browser console like: Content Security Policy: The page’s settings blocked the loading of a resource at eval (“script-src”).
Maybe we should use pdfjs-dist/web/pdf_viewer? I didn't test it yet, however. Another option would be defining globalThis.regeneratorRuntime = undefined, as described here
Steps to reproduce
Steps to reproduce the behavior:
Upgrade to 5.4.0
Set up CSP
Try to import react-pdf
The text was updated successfully, but these errors were encountered:
Before you start - checklist
Description
In 5.4.0 you changed pdfjs-dist import to
/legacy/build
#794This brings back old pdf.js issue mozilla/pdf.js#10229 with regenerator-runtime facebook/regenerator#336
You can see message in browser console like:
Content Security Policy: The page’s settings blocked the loading of a resource at eval (“script-src”).
Maybe we should use
pdfjs-dist/web/pdf_viewer
? I didn't test it yet, however. Another option would be definingglobalThis.regeneratorRuntime = undefined
, as described hereSteps to reproduce
Steps to reproduce the behavior:
The text was updated successfully, but these errors were encountered: