adapter-vercel — external
option breaks dependecies
#5024
Labels
bug
Something isn't working
p1-important
SvelteKit cannot be used by a large number of people, basic functionality is missing, etc.
pkg:adapter-vercel
Pertaining to the Vercel adapter
Milestone
Describe the bug
I have deployed a SvelteKit app to Vercel using
@sveltejs/adapter-vercel
. My serverless function is throwing this error:I definitely have
"pgsql-parser"
listed in my dependencies in mypackage.json
. Mysvelte.config.js
looks something like this:I have excluded the runtime dependencies from the bundle. This is necessary because 1 of my dependencies is the Postgres node.js driver,
"pg"
, which relies on native addons, and it cannot be bundled. The Vercel docs say that the dependencies will get automatically installed. However, it seems that my function is unable to find my dependencies.How can I make sure my dependencies are available at function runtime without bundling?
Reproduction
I have a simpler reproduction here. When I deploy that to Vercel, it crashes in the hook because
'@lukeed/uuid
isn't found.Logs
System Info
Severity
blocking all usage of SvelteKit
Additional Information
No response
The text was updated successfully, but these errors were encountered: