Skip to content

Can't use zod v4 #6138

@JClackett

Description

@JClackett

Which project does this relate to?

Start

Describe the bug

If I try to use zod 4 in project I get errors when starting vite because router-generator and start-core relies on zod v3 api', the old z.function().returns, its now z.function({input: [], output:[]}).

Your Example Website or App

https://stackblitz.com/edit/github-9eq11eyj?file=package.json

Steps to Reproduce the Bug or Issue

npm install
npm run dev

Expected behavior

Server should start

Screenshots or Videos

Image

Platform

  • Router / Start Version: latest
  • OS: macos
  • Browser: all
  • Browser Version: latest
  • Bundler: vite
  • Bundler Version: vite 7 and 8 beta

Additional context

I guess it's not possible to use zod v4 yet? otherwise get into weird issues where theres multiple versions of zod installed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions