import { Hono } from "hono";
import * as z from "zod"; // triggers the errors
const app = new Hono();
app.get("/", (c) => c.text("cesconix"));
export default app;
Run:
vc dev
Note:
With Zod v3, no issue occurs.
With node or ts-node, no issue occurs — only vc dev fails.
Downgrading Zod to v3 is a temporary workaround.
Project information (URL, framework, environment, project settings)
also battling this issue. I got the node_modules to line up the ts versions, but running vercel dev and still hit these type issues at runtime. Problematic for packages like upstash/workflow that rely on zod v4.
Thanks for the report. vercel@48.4.1 has just been published with a fix. This will respect the Typescript version you have installed so you don’t need to do the overrides in the package.json. In a future release, we won’t be running typechecks during dev at all!
only vc dev fails.
@cesconix And just to clarify that I have the right context, your requests still work, it’s just that we emit these errors in the terminal, correct?