Skip to content

fix(db): schema types with rolldown rc - #823

Open
onmax wants to merge 1 commit into
nuxt-hub:mainfrom
onmax:fix/hub-821-tsconfig
Open

fix(db): schema types with rolldown rc#823
onmax wants to merge 1 commit into
nuxt-hub:mainfrom
onmax:fix/hub-821-tsconfig

Conversation

@onmax

@onmax onmax commented Feb 6, 2026

Copy link
Copy Markdown
Contributor

Fixes #821

Problem

  • With Vite 8 + rolldown rc.* overrides, DB schema type generation during nuxt prepare can fail.
  • I saw two failure modes:
    • rolldown validation warning about an unsupported debug input option (coming from tsdown/rolldown API drift)
    • fatal [TSCONFIG_ERROR] ... Tsconfig not found when schema types are emitted from .nuxt/hub/db/schema.entry.ts in some environments

What Changed

  • Bump tsdown dependency to ^0.20.3.
  • Generate .nuxt/hub/db/tsconfig.json (template) for schema type generation.
  • Pass that tsconfig to buildDatabaseSchema() and sanitize rolldown input options (debug).
  • Auto-create tsconfig fallback in buildDatabaseSchema() for direct callers (CLI, tests) where Nuxt templates haven't been written.
  • Add inlineOnly: false to suppress tsdown 0.20.3 dependency detection warning with skipNodeModulesBundle: false.

StackBlitz

Link Expected
Bug hub-821 Warnings/errors
Fix hub-821-fix Clean prepare

@vercel

vercel Bot commented Feb 6, 2026

Copy link
Copy Markdown

@onmax is attempting to deploy a commit to the NuxtLabs Team on Vercel.

A member of the Team first needs to authorize it.

@atinux
atinux self-requested a review February 15, 2026 20:35
@atinux

atinux commented Feb 16, 2026

Copy link
Copy Markdown
Contributor

Happy to resolve the conflicts @onmax ?

@onmax
onmax force-pushed the fix/hub-821-tsconfig branch 3 times, most recently from fe5a012 to c9ae819 Compare February 17, 2026 06:20
@onmax

onmax commented Feb 17, 2026

Copy link
Copy Markdown
Contributor Author

CI test failures are a pre-existing Nuxt 4.3.1 issue (Cannot find module '#build/route-rules.mjs') — same failure on main's latest commit. Tracked in nuxt/nuxt#34164

Lint passes. Our changes are clean.

@onmax

onmax commented Mar 5, 2026

Copy link
Copy Markdown
Contributor Author

for context, I made a repro for Cannot find module '#build/route-rules.mjs'.

nuxt/nuxt#34392 (comment)

@onmax
onmax force-pushed the fix/hub-821-tsconfig branch from 9178ffa to 83ebcb4 Compare March 10, 2026 08:30
@onmax
onmax force-pushed the fix/hub-821-tsconfig branch from 83ebcb4 to 0edf40f Compare June 30, 2026 05:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

@nuxthub/core@0.10.6 + Vite 8 throws error on nuxt prepare

2 participants