vscode-vite icon indicating copy to clipboard operation
vscode-vite copied to clipboard

Startup fails.

Open zangzang opened this issue 1 year ago • 7 comments

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

  • [X] Follow our Code of Conduct
  • [X] Read the Contributing Guide.
  • [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • [X] Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • [X] The provided reproduction is a minimal reproducible of the bug.

zangzang avatar Mar 21 '23 00:03 zangzang

We encountered the same problem

Lonfar avatar Apr 26 '23 21:04 Lonfar

We encountered the same problem

keman5 avatar Apr 29 '23 12:04 keman5

@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!

sarvex avatar Jul 06 '23 00:07 sarvex

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:

  • Open your VSCode Settings
  • Find terminal.integrated.defaultProfile.windows
  • Set it to the correct one (the same you use as your terminal on your system)

I hope it was helpful :)

danielfilho avatar Oct 16 '23 09:10 danielfilho

#39 same issue

sun128764 avatar Nov 25 '23 18:11 sun128764

I encountered the same issue.

CassandraCat avatar Feb 13 '24 11:02 CassandraCat

set vite.devCommand in setting:

npm run dev -- --host=127.0.0.1

zcyc avatar May 30 '24 03:05 zcyc