Next.js Discord

Discord Forum

Platform starter kit always fails to deploy

Unanswered
Flemish Giant posted this in #help-forum
Open in Discord
Flemish GiantOP
Hello,

Each time I deploy on Vercel the project "platform" starter kit, I get the following error:

Error: The Edge Function "middleware" is referencing unsupported modules:
- next: stream, fs, url
NOW_SANDBOX_WORKER_EDGE_FUNCTION_UNSUPPORTED_MODULES: The Edge Function "middleware" is referencing unsupported modules: - next: stream, fs, url

I tried different things like downgrading next js...

I really need help to move forward on this starter kit!
Alexandre

1 Reply

Flemish GiantOP
So I was able to deploy.

On Vercel, in project settings > Build & Development Settings section > select Next.js since Other was selected by default.

Everything works fine now.