Skip to content
Discussion options

You must be logged in to vote

@hey-api/openapi-ts shouldn’t touch Vite/Nitro state. It reads the config, fetches the OpenAPI spec, and writes files to output; if package.json / lockfile don’t change and the generated files aren’t imported, there isn’t an expected path where it would make the TanStack Start dev server fail.

One cache worth checking for TanStack Start is .vinxi in addition to .vite, .nitro, and .output:

rm -rf .vinxi .vite .nitro .output node_modules
npm install
npm run dev

The recommended integration is just to keep generation as an explicit script, ideally writing inside the app package:

{
 "scripts": {
 "api:generate": "openapi-ts"
 },
 "devDependencies": {
 "@hey-api/openapi-ts": "latest"
 }
}

not s…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@JosefStanek
Comment options

@mrlubos
Comment options

Answer selected by JosefStanek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants