-
-
Notifications
You must be signed in to change notification settings - Fork 878
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
Uncaught SyntaxError: Unexpected token '<' (at pdf.worker.js:1:1) #991
Comments
import { Document, Page, pdfjs } from "react-pdf"; dependences |
Import Also add this inside your functional component ` |
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: