ViteHub is still experimental. Expect bugs and breaking changes.

Troubleshooting

Diagnose common ViteHub development failures from symptoms to proof paths.

Troubleshooting starts from the failed proof path. Identify whether the failure comes from discovery, generated files, provider resources, Runtime Helpers, DevTools, Agent behavior, or host output before changing code.

Quick checks

SymptomFirst checkProof path
Definition is missingFile path and default export shapeFile conventions and .vitehub/**
Stable import failsVite Integration and generated TypeScript includesGenerated files
Provider build failsProvider Selection and required resource idsProvider output
DevTools feature is absenthubDevtools() and package DevTools opt-outDevTools
Agent changed behaviorAgent Eval result and Agent Usage RecordAgent Evals
Runtime error lacks contextPackage error family and diagnostics outputErrors and diagnostics

Discovery failures

Discovery Identity comes from the file location. Do not add inline ids to force a name; move the file to the expected convention instead.

File tree
server/
  agents/
    support.ts
  queues/
    welcome-email.ts
  workspaces/
    docs.ts

If a package requires a direct default export of a Definition Boundary Helper, avoid named aggregate exports and local indirection. The direct export keeps Build-Extracted Definition Options inspectable.

Provider failures

Provider failures usually belong to one of three layers: missing provider credentials, missing Provision State, or invalid Provider Output. Dry-run provisioning first, then inspect generated host output.

Terminal
pnpm vitehub provision run --provider cloudflare --dry-run
pnpm build
find dist -maxdepth 4 -type f | sort

Agent failures

Separate Agent runtime failures from model behavior. Use DevTools to inspect one interactive Agent Invocation, then use Agent Evals when the failure is repeatable behavior.

Terminal
pnpm vitehub agent eval server/agents/support.eval.ts --output .vitehub/evals/support.json

When to escalate

Escalate to a package-level fix when the same failure appears in the owning package's proof path. A Downstream Escape should become a Primitive Suite case, an Agent Eval, or a playground reproduction together with the fix.

Next steps

Copyright © 2026