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 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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?All reactions