antfu / vscode-vite

One step faster for Vite in VS Code ⚡️
https://marketplace.visualstudio.com/items?itemName=antfu.vite
452 stars 25 forks source link

Startup fails. #30

Open zangzang opened 1 year ago

zangzang commented 1 year ago

Describe the bug

image

When you open a project using vitepress, it starts automatically, but it starts at some point and then stops. I didn't give a stop command such as Ctrl+C, but it doesn't progress while asking if I want to stop the command.

But using npm run dev in terminal is not a problem.

Reproduction

It just happens at startup, and even if you start by clicking the bite press icon at the bottom, the same happens after about 10 seconds.

System Info

System:
    OS: Windows 10 10.0.22621
    CPU: (20) x64 12th Gen Intel(R) Core(TM) i7-12700H
    Memory: 20.43 GB / 31.73 GB
  Binaries:
    Node: 16.19.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 8.19.3 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.22621.1413.0), Chromium (111.0.1661.44)
    Internet Explorer: 11.0.22621.1

Used Package Manager

npm

Validations

Lonfar commented 1 year ago

We encountered the same problem

keman5 commented 1 year ago

We encountered the same problem

sarvex commented 1 year ago

@zangzang @keman5 can you check the full command executed for running the server?

@zangzang in your case there are two vite instances are running in terminal, you need to close one!

danielfilho commented 1 year ago

I was having this issue and this is what I found out:

The instance of VSCode for the terminal was different from my actual default terminal, where I had everything installed (VSCode was running cmd.exe but everything was set on WSL2 Ubuntu).

What you need to do to fix is:

I hope it was helpful :)

sun128764 commented 11 months ago

39 same issue

CassandraCat commented 8 months ago

I encountered the same issue.

zcyc commented 5 months ago

set vite.devCommand in setting:

npm run dev -- --host=127.0.0.1