Open Soviut opened 6 days ago
This package is ESM only. I'm not sure if converting the PDF.js bundle to CJS is a viable option. I would have to investigate.
Can I migrate my project to ESM? The ecosystem is slowly but steadily migrating from CJS to ESM, so I highly recommend following this approach. At least if your project allows it. 🙂
Perhaps I just need to update my tsconfig.json
to something other than
"module": "commonjs"
Node: v20.18.0 pdfjs-serverless: 0.6.0
I've used pdfjs-serverless in another project and it worked fine. However, when I installed it in a new project I got the following error. The previous project used pdfjs-serverless@0.4.2, but switching the new project to that version gave the same error.