Vercel logs or terminal

Error: The Edge Runtime does not support Node.js '…' module.

What it means
A route or middleware configured to run on the lightweight Edge runtime imported a package that requires full Node.js.
Likely causes
  • Importing a full database driver or Node crypto/fs library inside middleware.ts or an Edge route.
  • Setting export const runtime = 'edge' on a route that uses Node-only libraries.
Prevention
Use the standard Node.js runtime for Server Actions and Route Handlers unless Edge is specifically needed.

Copy for your agent

I get `The Edge Runtime does not support Node.js module`. Keep heavy auth/database logic in standard Node.js Server Actions or Route Handlers, or use `@neondatabase/serverless`.

Full help articleThe Preview works but the live site doesn't

Last reviewed Nov 8, 2026