Open sun128764 opened 9 months ago
This problem occurs at https://github.com/antfu/vscode-vite/blob/main/src/utils.ts#L41C5-L41C5 Somehow, the 'http.request' can't access http://localhost:4000 and throw an "ECONNREFUSED:127.0.0.1 refused to connect" error
there was no updates since 2021. maybe antony will fix it in the future or never?
I encountered the same issue.
I solved this issue by setting the Dev Command to start vite with a specific host:
npm run dev -- --host=127.0.0.1
Describe the bug
When use Vite 5.0 vue-ts template and vscode-site 0.2.5, it will try to close(Ctrl+C) after a while.
Reproduction
https://stackblitz.com/edit/vitejs-vite-stmbrn?file=index.html&terminal=dev
System Info
Used Package Manager
npm
Validations