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/fslibrary insidemiddleware.tsor an Edge route. - Setting
export const runtime = 'edge'on a route that uses Node-only libraries.
- Importing a full database driver or Node
- 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`.
Was this page helpful?