Skip to content

Commit

Permalink
chore: fix pdf issue related to react pdf
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohit21GoJs committed Oct 17, 2024
1 parent 9cd20c2 commit f89eda2
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
28 changes: 14 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"react-feather": "^2.0.10",
"react-hot-toast": "^2.4.1",
"react-leaflet": "^4.2.1",
"react-pdf": "^9.1.1",
"react-pdf": "^8.0.2",
"sass": "^1.78.0",
"save": "^2.9.0",
"tailwind-merge": "^2.5.3",
Expand Down
2 changes: 1 addition & 1 deletion src/pages/upload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import 'react-pdf/dist/esm/Page/AnnotationLayer.css';
import 'react-pdf/dist/esm/Page/TextLayer.css';

// Configure pdfjs worker
pdfjs.GlobalWorkerOptions.workerSrc = `//cdnjs.cloudflare.com/ajax/libs/pdf.js/${pdfjs.version}/pdf.worker.min.mjs`;
pdfjs.GlobalWorkerOptions.workerSrc = `//cdnjs.cloudflare.com/ajax/libs/pdf.js/${pdfjs.version}/pdf.worker.min.js`;

export default function PdfUploader() {
const [pdfFile, setPdfFile] = useState<File | null>(null);
Expand Down

0 comments on commit f89eda2

Please sign in to comment.