Closed VGraupera closed 2 weeks 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)
Same for me.
Facing the same issue with Nextjs v15.0.1 and pnpm
solved in v1.3.8
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)