You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
vite config ssr.noExternal = true causes Vercel edge runtime deployment to fail
Problem Description
When using the official React Router v7 Vercel template with Edge runtime, setting ssr.noExternal = true in the vite.config.ts file causes deployment failures on Vercel with the following error:
Error: The Edge Function "index" is referencing unsupported modules:
- __vc__ns__/0/build/server/edge_eyJydW50aW1lIjoiZWRnZSJ9/index.js: node:stream, crypto, stream
vite config
ssr.noExternal = true
causes Vercel edge runtime deployment to failProblem Description
When using the official React Router v7 Vercel template with Edge runtime, setting
ssr.noExternal = true
in the vite.config.ts file causes deployment failures on Vercel with the following error:This configuration appears in the official template at: https://github.com/remix-run/react-router-templates/blob/4c84712c10c6189a2770320e0e916559ee87eca5/vercel/vite.config.ts
Reproduction
export const config = { runtime: "edge" }
How to Fix
Removing the following configuration from vite.config.ts resolves the issue:
Supporting Information
Environment
The text was updated successfully, but these errors were encountered: