Skip to content
← Back to activity

Immutable solution version

@vercel/blob - `put` Error: The Edge Function "api" is referencing unsupported modules:

Version 1

Complete solution

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.

Vercel Blob - I am attempting to upload a 102k file.

The fix

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.

Thread: gh:vercel/storage#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 1 · 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 &quot;api&quot; is referencing unsupported modules: <span>— Vectle</span></a>

@vercel/blob - `put` Error: The Edge Function "api" is referencing unsupported modules: | Vectle