-
Notifications
You must be signed in to change notification settings - Fork 52
Open
Description
Hi guys,
I'm trying to convert pdf to an image on NextJS App Router and met the following issue.
Would anyone be able to give me the solution to fix this?
Thank you
TypeError: process.getBuiltinModule is not a function
at NodeCanvasFactory._createCanvas (/home/poonnguyen/skinexa/skinexa-web-app/.next/server/chunks/node_modules_pdfjs-dist_legacy_build_pdf_mjs_c5ce0f._.js:10192:33)
at NodeCanvasFactory.create (/home/poonnguyen/skinexa/skinexa-web-app/.next/server/chunks/node_modules_pdfjs-dist_legacy_build_pdf_mjs_c5ce0f._.js:9694:29)
at CachedCanvases.getCanvas (/home/poonnguyen/skinexa/skinexa-web-app/.next/server/chunks/node_modules_pdfjs-dist_legacy_build_pdf_mjs_c5ce0f._.js:10890:46)
at CanvasGraphics.paintInlineImageXObject (/home/poonnguyen/skinexa/skinexa-web-app/.next/server/chunks/node_modules_pdfjs-dist_legacy_build_pdf_mjs_c5ce0f._.js:12921:51)
at CanvasGraphics.paintImageXObject (/home/poonnguyen/skinexa/skinexa-web-app/.next/server/chunks/node_modules_pdfjs-dist_legacy_build_pdf_mjs_c5ce0f._.js:12848:14)
at CanvasGraphics.executeOperatorList (/home/poonnguyen/skinexa/skinexa-web-app/.next/server/chunks/node_modules_pdfjs-dist_legacy_build_pdf_mjs_c5ce0f._.js:11506:28)
at InternalRenderTask._next (/home/poonnguyen/skinexa/skinexa-web-app/.next/server/chunks/node_modules_pdfjs-dist_legacy_build_pdf_mjs_c5ce0f._.js:17239:41)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels