[Vercel] ERR_MODULE_NOT_FOUND on deploy but works locally
Hey everyone 👋
I’m running into an issue when deploying my Hono app to Vercel. Locally, the app builds and runs fine (bun build && bun start works with no errors). But on Vercel, the build passes, then on start I get this error:
Things I’ve checked:
- The file exists at apps/server/src/lib/auth.ts.
- It runs locally without errors.
- The error only happens in the Vercel runtime after deploy.
1 Reply
id recommend just switching to railway, it works with no issues