#Facing issue when using a package which internally uses workers.

1 messages · Page 1 of 1 (latest)

compact crane
#

When using via npm link to create a symlink to refer the local repo things works fine . The moment package is published , I start seeing the issue where worker call gives 504 bad gateway error

frigid jay
#

Ive got the exact same error and it worked before for me with symlink like you said and now it doesnt I think its because vite checks if a file is beeing imported somewhere in the lib and since its just used in new Worker(path) this doesnt count which removes it from the serverd package in the client. I tried turning off optimizeDeps which doesnt help at all.

frigid jay
#

and when excluding the lib it just throws some ambiguous imports from the packages the lib is using

compact crane
#

exactly same is happening with me.

#

<@&919574547609563176> can someone pls help us out. We migrated from to vite recently and this issue is keeping us sleepless

dreamy meteor