Replies: 1 comment
-
|
You're probably hitting a Node-side dependency/runtime issue rather than anything wrong with your text-extraction loop. The giveaway is the exact chain:
That usually means the Node legacy build is still trying to initialize its Node polyfill/canvas path, so even if you're only calling What I'd try first:
So to your direct question: in the current Node legacy path, yes, If adding |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey!
I'm trying to use
pdf.jsin a node.js environment with Tanstack Start + Nitro to read a pdf content. I have installedpdfjs-distversion5.4.530.Here's my file
Whenever I run this function, at runtime, I get the following error.
It is my belief that in node.js environments the
@napi-rs/canvaswould not be required, right? But it is still being called. Anyone knows how to fix this?Beta Was this translation helpful? Give feedback.
All reactions