Before you start - checklist
What are you trying to achieve? Please describe.
Describe what are you trying to achieve Ex. I'd like to display multiple pages of my PDF.
Describe solutions you've tried
Describe solutions you've already tried, if any. Make sure to include code samples if you're stuck on implementation.
Additional information
If applicable, add screenshots (preferably with browser console open) and files you have an issue with to help explain your problem.
Environment

It is ugly solution but I resolved like below.
import pdfMake from "pdfmake/build/pdfmake";
import pdfFonts from "pdfmake/build/vfs_fonts";
import { Document, Page, pdfjs } from 'react-pdf'
pdfjs.GlobalWorkerOptions.workerSrc = `//cdnjs.cloudflare.com/ajax/libs/pdf.js/${pdfjs.version}/pdf.worker.js`
npm install --save-dev pdfjs-dist
and
pdfjs.GlobalWorkerOptions.workerSrc = 'node_modules/pdfjs-dist/build/pdf.worker.js';
Thank You So Much for solution. Its working now.
Can't help you since you completely ignored the form I created to help you describe the issue.
Also resolved in #291
I was having the same issues and following the suggestions in this issue im receiving a: InvalidPDFException聽{name: "InvalidPDFException", message: "Invalid PDF structure"} - error now.
If i use a url im getting a Cors issue.
Any suggestions? Im really struggeling to get this work in my React app (CRA, TypeScript)
@jp3492, this issue was exclusive to React-PDF 3.x. Try 4.x.
Most helpful comment
It is ugly solution but I resolved like below.