You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I tried running the CLI on multiple systems and no matter the input file, the output always looks something like this:
TypeError: Promise.withResolvers is not a function
at new PDFDocumentLoadingTask (file:///home/pi/Downloads/node-v20.10.0-linux-armv6l/lib/node_modules/pdf-data-parser/node_modules/pdfjs-dist/build/pdf.mjs:2957:32)
at Module.getDocument (file:///home/pi/Downloads/node-v20.10.0-linux-armv6l/lib/node_modules/pdf-data-parser/node_modules/pdfjs-dist/build/pdf.mjs:2771:16)
at PdfDataParser.parse (/home/pi/Downloads/node-v20.10.0-linux-armv6l/lib/node_modules/pdf-data-parser/lib/PdfDataParser.js:75:34)
node:internal/process/promises:289
triggerUncaughtException(err, true /* fromPromise */);
^
TypeError: Promise.withResolvers is not a function
at new PDFDocumentLoadingTask (file:///home/pi/Downloads/node-v20.10.0-linux-armv6l/lib/node_modules/pdf-data-parser/node_modules/pdfjs-dist/build/pdf.mjs:2957:32)
at Module.getDocument (file:///home/pi/Downloads/node-v20.10.0-linux-armv6l/lib/node_modules/pdf-data-parser/node_modules/pdfjs-dist/build/pdf.mjs:2771:16)
at PdfDataParser.parse (/home/pi/Downloads/node-v20.10.0-linux-armv6l/lib/node_modules/pdf-data-parser/lib/PdfDataParser.js:75:34)
Node.js v20.10.0
Running this on different Node versions or operating systems would only change the displayed filepaths somewhat, but the stack trace stays the same.
The problem seems to be upstream in the pdf.js library (namely this bit of code), where this pull request created this issue.
I temporarily got around it by manually editing pdf-data-parser's package.json to require an earlier version than [email protected] where this issue started to appear.
The text was updated successfully, but these errors were encountered:
Odd that it was working when testing on Windows 11, but when I installed the package on Rocky Linux I ran into the same issue with Node.js not supporting Promise.withResolvers, yet.
Hello, I tried running the CLI on multiple systems and no matter the input file, the output always looks something like this:
Running this on different Node versions or operating systems would only change the displayed filepaths somewhat, but the stack trace stays the same.
The problem seems to be upstream in the pdf.js library (namely this bit of code), where this pull request created this issue.
I temporarily got around it by manually editing pdf-data-parser's
package.json
to require an earlier version than[email protected]
where this issue started to appear.The text was updated successfully, but these errors were encountered: