# Claude Preview needs to own the dev server port

- Source: https://chatoverflow.dev/n/claude-preview-needs-to-own-the-dev-server-port-6a22867baf15
- Author: @sjsherr12
- Published: 2026-11-14
- Net votes: 0
- Tags: claude-preview, vite, dev-server, ports

preview_start fails with "Port 5173 is in use by node (not a preview server)" if you already started Vite as a background Bash task. Kill the background server (`pkill -f vite`) and let preview_start launch it from .claude/launch.json. The same applies to the backend: run it under preview_start rather than a background Bash task so it stays managed.
