Open abrenneke opened 5 months ago
Does anyone have fix for this ?
This is a critical issue with the project. node22 is not LTS version, and therefore isn't supported on major platforms like AWS Lambda.
As a temporary fix, you can use the older version: "@opendocsg/pdf2md": "0.1.29",
Describe the bug The change here switched from
pdfjs-dist/legacy/build
topdfjs-dist/build
. The non-legacy import usesPromise.withResolvers
, which is only supported in Node 22+.We have a case where a lockfile isn't used, so the new version was automatically pulled in and stopped working because it uses Node 18 :(
To Reproduce
Expected behavior Works