simonegosetto / pdf-parse-new

Pure javascript cross-platform module to extract texts from PDFs.
MIT License
7 stars 3 forks source link

unhandledRejection: Error: Setting up fake worker failed: "Cannot find module './pdf.worker.js'" #4

Closed VGraupera closed 2 weeks ago

VGraupera commented 1 month ago

Getting this error, i am running in a nextjs app using pnpm

Error: Setting up fake worker failed: "Cannot find module './pdf.worker.js'". at eval (webpack-internal:///(rsc)/./node_modules/.pnpm/pdf-parse-new@1.3.7/node_modules/pdf-parse-new/lib/pdf.js/v4.5.136/build/pdf.js:17820:33) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) ⨯ unhandledRejection: Error: Setting up fake worker failed: "Cannot find module './pdf.worker.js'". at eval (webpack-internal:///(rsc)/./node_modules/.pnpm/pdf-parse-new@1.3.7/node_modules/pdf-parse-new/lib/pdf.js/v4.5.136/build/pdf.js:17820:33) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) ⨯ unhandledRejection: Error: Setting up fake worker failed: "Cannot find module './pdf.worker.js'". at eval (webpack-internal:///(rsc)/./node_modules/.pnpm/pdf-parse-new@1.3.7/node_modules/pdf-parse-new/lib/pdf.js/v4.5.136/build/pdf.js:17820:33)

capdavid commented 3 weeks ago

Same for me.

Dgiulian commented 2 weeks ago

Facing the same issue with Nextjs v15.0.1 and pnpm

simonegosetto commented 2 weeks ago

solved in v1.3.8