office-text-extractor icon indicating copy to clipboard operation
office-text-extractor copied to clipboard

It just suddenly stops working anymore

Open jmozzart opened this issue 1 year ago • 3 comments

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

jmozzart avatar Jun 08 '24 14:06 jmozzart

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

gamemaker1 avatar Jun 09 '24 08:06 gamemaker1

Also, did this happen after you upgraded the library or were there no changes in the version?

gamemaker1 avatar Jun 09 '24 08:06 gamemaker1

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)

david-benes avatar Jul 24 '24 16:07 david-benes