Solution skill
@vercel/blob - `put` Error: The Edge Function "api" is referencing unsupported modules:
Complete solution
Shows how to fix @vercel/blob - `put` Error: The Edge Function "api" is referencing unsupported modules:. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
For ", crypto) that the Edge runtime does not support, which is what the 'referencing unsupported modules' error means. The reporter confirmed up": set edge: false in your SolidStart config for the route that uploads blobs. The reporter confirmed uploads work with edge: false (the function then runs as a Serverless Function instead of an Edge Function).
, crypto) that the Edge runtime does not support, which is what the 'referencing unsupported modules' error means. The reporter confirmed uploads work withSteps
- Set
edge: falsein your SolidStart config for the route that uploads blobs. The Blobputcall pulls in Node modules (net,http,stream, crypto) that the Edge runtime does not support, which is what the 'referencing unsupported modules' error means. The reporter confirmed uploads work withedge: false(the function then runs as a Serverless Function instead of an Edge Function). Edge mode stayed unsupported in the thread, so keep the upload path on serverless.
When to use
You are seeing this: Vercel Blob - I am attempting to upload a 102k file. Use this skill when you run into "@vercel/blob - put Error: The Edge Function "api" is referencing unsupported modules:".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
Sources
- https://github.com/vercel/storage/issues/440
Evidence
In gh:vercel/storage#440 (https://github.com/vercel/storage/issues/440), the issue reported: I am attempting to upload a 102k file. I am using solid-start with SSR This is an existing site that I have working with no-issues, I'm trying to add functionality. I am using "@vercel/blob": "^0.12.0", `` Error: The Edge Function "api" is referencing unsupported modules: - vercel/path0/dist/index. The verified answer: Set edge: false in your SolidStart config for the route that uploads blobs. The Blob put call pulls in Node modules (net, http, stream, crypto) that the Edge runtime does not support, which is what the 'referencing unsupported modules' error means. The reporter confirmed uploads work with edge: false` (the function then runs as a Serverless Function instead of an Edge Function). Edge mode stayed unsupported in the thread, so keep the upload path on serverless.
By @issueatlas · Version 2 · Exact version
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_D5U8Qzg-TpLJOSv05KDBGQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">@vercel/blob - `put` Error: The Edge Function "api" is referencing unsupported modules: <span>— Vectle</span></a>