Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

只开发前端,删除service文件夹之后会报错 #550

Open
Chauban opened this issue Jun 3, 2024 · 1 comment
Open

只开发前端,删除service文件夹之后会报错 #550

Chauban opened this issue Jun 3, 2024 · 1 comment

Comments

@Chauban
Copy link

Chauban commented Jun 3, 2024

想只开发前端,会报没有后端服务的错。请问如何单独开发前端

`PS D:\Desktop\chatgpt-web> pnpm dev

[email protected] dev D:\Desktop\chatgpt-web
vite

VITE v4.2.0 ready in 668 ms

➜ Local: http://localhost:1002/
➜ Network: http://192.168.2.100:1002/
➜ press h to show help
22:53:06 [vite] http proxy error at /session:
Error: connect ECONNREFUSED 127.0.0.1:3002
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1606:16)
22:53:55 [vite] http proxy error at /session:
Error: connect ECONNREFUSED 127.0.0.1:3002
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1606:16) (x2)
22:53:57 [vite] http proxy error at /session:
Error: connect ECONNREFUSED 127.0.0.1:3002
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1606:16) (x3)

`

@BobDu
Copy link
Member

BobDu commented Jun 5, 2024

那总得有个能访问到的地方在运行后端才行吧。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants