Vite Doctor is a CLI diagnostic tool for Vite, Nuxt, Vue, and Nitro projects. It statically analyzes app code, build configurations, and server handlers to catch framework bugs and misconfigurations before they reach code review. The current stable version is 0.0.2, with a fast release cadence typical of early-stage tools. It differentiates itself by targeting AI-generated code footguns, offering extensible rule presets, flexible CLI flags (--extends, --rules, --framework), and plugin integration for Vite and Nuxt configs. It ships with TypeScript types and supports ESM-only usage.
npm install vite-doctorNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows CLI usage with pnpm dlx, Nuxt integration, and Vite plugin configuration with custom rules.
Upgrade Node.js to v22.20.0 or later.
Use 'vite-doctor/nuxt' in the modules array.
Import from 'vite-doctor/config'.
Use dynamic import() or set type: 'module' in package.json.
Use dynamic import() or switch to an ESM context (type: 'module' in package.json).
Ensure you are using 'import { defineDoctorConfig } from 'vite-doctor/config'' (correct casing).Upgrade Node.js to version 22.20.0 or later.