Did you mean to visit: http://localhost:5173/?
Port 5173 is commonly used by:
This error occurs when another application is already using port 5173. Solutions:
npm run dev -- --port 5174
export default defineConfig({ server: { port: 5174 } })
netstat -ano | findstr :5173
then taskkill /PID [PID] /F
lsof -i :5173
then kill -9 [PID]
If changes aren't automatically reflecting in the browser:
By default, Vite's development server only listens on localhost:
npm run dev -- --host
export default defineConfig({ server: { host: '0.0.0.0' } })
http://YOUR_IP:5173