#Can't get WASM file to be included (pulling my hair out)

9 messages · Page 1 of 1 (latest)

bold nova
#

I've been struggling for days on this. I've tried all the hacks on github, but I still can't get Vercel to include this wasm file for Tesseract for the serverless function. Can someone help please?

umbral pier
#

(with a reproduction project)

bold nova
#

@umbral pier do you know if it's possible to force files to be bundled into var/task/node_modules/ in Vercel?

umbral pier
#

nope

bold nova
#

welp. lmao.

umbral pier
#

you need to figure out if the library is already bundling this wasm file or if it needs to build it in your machine, maybe vercel is blocking it from being generated? if the library is bundling it normally then it should be there

#

hence why I suggested asking in their forum with a basic reproduction so they can understand if its an issue with vercel

bold nova
#

Got it. Yeah, it's already there (pre-generated), which is why it's so confusing and frustrating.