opengovsg / pdf2md

A PDF to Markdown converter
https://www.npmjs.com/package/@opendocsg/pdf2md
MIT License
195 stars 39 forks source link

Error: The browser/environment lacks native support for critical functionality used by the PDF.js library (e.g. `ReadableStream` and/or `Promise.allSettled`); please use an ES5-compatible build instead. #45

Closed ttys3 closed 3 years ago

ttys3 commented 3 years ago

run npx @opendocsg/pdf2md --inputFolderPath=[your input folder path] --outputFolderPath=[your output folder path] --recursive

got

Error: The browser/environment lacks native support for critical functionality used by the PDF.js library (e.g. `ReadableStream` and/or `Promise.allSettled`); please use an ES5-compatible build instead.
ttys3 commented 3 years ago

solution https://stackoverflow.com/a/64189798/13267147

LoneRifle commented 3 years ago

Thanks for filing this! We're all pretty busy at this time, so it might take a while for us to get to this issue. If you want to file a PR, I'll be happy to review!

LoneRifle commented 3 years ago

Should be fixed in 0.1.21, please reopen if otherwise!