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
I followed instructions in documentation written for my React-PDF version
I have checked if this bug is not already reported
I have checked if an issue is not listed in Known issues
If I have a problem with PDF rendering, I checked if my PDF renders properly in PDF.js demo
Description
hello
I am using react-pdfversion 5.x in my react version 18 app and it throws me the following error
Warning: Setting up fake worker.
Uncaught SyntaxError: Unexpected token '<' (at pdf.worker.js:1:1)
Steps to reproduce
Expected behavior
Actual behavior
Additional information
Environment
Browser (if applicable):
React-PDF v 5.x:
React v18:
Webpack version (if applicable):
The text was updated successfully, but these errors were encountered:
import { Document, Page, pdfjs } from "react-pdf";
pdfjs.GlobalWorkerOptions.workerSrc = //cdnjs.cloudflare.com/ajax/libs/pdf.js/${pdfjs.version}/pdf.worker.js;
this work for me
Before you start - checklist
Description
hello
I am using
react-pdf
version 5.x
in my reactversion 18
app and it throws me the following errorWarning: Setting up fake worker.
Uncaught SyntaxError: Unexpected token '<' (at pdf.worker.js:1:1)
Steps to reproduce
Expected behavior
Actual behavior
Additional information
Environment
The text was updated successfully, but these errors were encountered: