office-text-extractor
office-text-extractor copied to clipboard
It just suddenly stops working anymore
Description
It was working perfectly before, but recently I'm seeing undefined responses. No error is logged in the console. I was testing the same file/url that was working before, there was no changes in the script, but still it does not work the way before.
Library version
3.0.3
Node version
18
Typescript version (if you are using it)
No response
Hi @jmozzart,
Thanks for filing the issue. Could you please provide some more information (your code and an example file) so we can find a solution?
Regards, Vedant
Also, did this happen after you upgraded the library or were there no changes in the version?
It stopped processing pdfs in node v20.15 (mac), works in any previous nodejs version. It seems related to outdated upstream module.
TypeError: Cannot read properties of undefined (reading '0')
at isInsideNodeModules (node:internal/util:508:17)
at showFlaggedDeprecation (node:buffer:178:8)
at new Buffer (node:buffer:266:3)
at cloneValue (webpack-internal:///(rsc)/./node_modules/pdf-parse/lib/pdf.js/v1.10.100/build/pdf.js:3937:22)
at cloneValue (webpack-internal:///(rsc)/./node_modules/pdf-parse/lib/pdf.js/v1.10.100/build/pdf.js:3953:23)
at cloneValue (webpack-internal:///(rsc)/./node_modules/pdf-parse/lib/pdf.js/v1.10.100/build/pdf.js:3953:23)
at cloneValue (webpack-internal:///(rsc)/./node_modules/pdf-parse/lib/pdf.js/v1.10.100/build/pdf.js:3953:23)
at LoopbackPort.postMessage (webpack-internal:///(rsc)/./node_modules/pdf-parse/lib/pdf.js/v1.10.100/build/pdf.js:3964:23)
at MessageHandler.postMessage (webpack-internal:///(rsc)/./node_modules/pdf-parse/lib/pdf.js/v1.10.100/build/pdf.js:1385:19)
at MessageHandler.sendWithPromise (webpack-internal:///(rsc)/./node_modules/pdf-parse/lib/pdf.js/v1.10.100/build/pdf.js:1128:12)
at _fetchDocument (webpack-internal:///(rsc)/./node_modules/pdf-parse/lib/pdf.js/v1.10.100/build/pdf.js:3472:32)
at eval (webpack-internal:///(rsc)/./node_modules/pdf-parse/lib/pdf.js/v1.10.100/build/pdf.js:3438:12)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)