This template should help get you started developing with Vue 3 in Vite.
- Node.js >= 18.12.0 (Recommended: Node.js 22)
- Yarn package manager
node --versionIf you need to upgrade Node.js, we recommend using nvm:
# Install Node.js 22 (recommended)
nvm install 22
nvm use 22Or simply use the .nvmrc file in this project:
nvm useVSCode + Volar (and disable Vetur).
TypeScript cannot handle type information for .vue imports by default, so we replace the tsc CLI with vue-tsc for type checking. In editors, we need Volar to make the TypeScript language service aware of .vue types.
See Vite Configuration Reference.
yarnyarn devyarn buildLint with ESLint
yarn lint