deno icon indicating copy to clipboard operation
deno copied to clipboard

Vite Project Conflicts with Deno and Other Package Managers

Open Leviakc opened this issue 3 months ago • 0 comments

Version: Deno 2.0.4 OS: Fedora

Vite Project Conflicts with Deno and Other Package Managers

When you run a Vite project, the default port is set to http://localhost:5173/. When you try to run another Vite project while the first one is still running, it automatically sets the port to http://localhost:5174/.

However, when running a Vite project with Deno, it does not recognize if another Vite project is running with a different package manager, resulting in both projects using the same port.

I’ve tested various package managers, and they work as expected, but Deno seems to overlap on the same port.

Steps to reproduce the issue:

  1. Create a vite project with pnpm (or any other package manager):
pnpm create vite my-app -- --template vue
cd my-app
pnpm install
pnpm run dev
  1. Create a vite project with deno:
deno run -A npm:create-vite@latest my-app2 -- --template vue
cd my-app2
deno install
deno task dev
  1. Run Both Projects Simultaneously: Run both projects at the same time, and they will overlap.

deno-issue-2

Leviakc avatar Nov 04 '24 15:11 Leviakc