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

一直处于loading状态 #94

Open
scy251147 opened this issue Mar 13, 2024 · 6 comments
Open

一直处于loading状态 #94

scy251147 opened this issue Mar 13, 2024 · 6 comments

Comments

@scy251147
Copy link

scy251147 commented Mar 13, 2024

本地编译各种都正常,fontend中的dist资源也移动了,最后npm run dev如下也正常:

[email protected] dev
ee-bin dev

[ee-bin] [dev] Run [dev frontend] command
[ee-bin] [dev] config: {"directory":"./frontend","cmd":"npm","args":["run","dev"],"protocol":"http://","hostname":"localhost","port":8080,"indexPath":"index.html"}
[ee-bin] [dev] The [dev frontend] command is running
[ee-bin] [dev] Run [dev electron] command
[ee-bin] [dev] config: {"directory":"./","cmd":"electron","args":[".","--env=local"]}
[ee-bin] [dev] The [dev electron] command is running

[email protected] dev
vite --host --port 8080

VITE v4.5.2 ready in 519 ms

➜ Local: http://localhost:8080/
➜ Network: http://10.0.76.153:8080/
➜ Network: http://0.0.1.1:8080/
➜ press h to show help
2024-03-13 15:56:39,536 INFO 36543 [addon:tray] load
2024-03-13 15:56:39,577 INFO 36543 [addon:security] load
2024-03-13 15:57:40,201 ERROR 36543 [ee-core] Please check the http://localhost:8080 !

但是界面一直处于loading状态,一分钟后界面抛出错误“Startup failed, please check frontend service is runing !”

但是此时我打开 http://localhost:8080 ,是可以正常显示的。

请问这个是什么情况导致的呢?

@wallace5303
Copy link
Collaborator

bin.js的配置中,有个强制加载前端服务的属性,打开试试

https://www.kaka996.com/pages/c492f8/#%E9%85%8D%E7%BD%AE%E8%AF%B4%E6%98%8E

@wallace5303
Copy link
Collaborator

虽然有解决方案,但能否在群里加我微信,协助我排查一下这个问题。我本地无法复现

@1974667123
Copy link

打开他说的这个强制加载前端服务的属性就可以了

@01Petard
Copy link

同样遇到了问题,将dev.frontend.force改为true后不会显示“Startup failed, please check frontend service is runing !”了,但是窗口页面是一片空白

@Arc-zlz
Copy link

Arc-zlz commented Oct 30, 2024

同样遇到了问题,将dev.frontend.force改为true后不会显示“Startup failed, please check frontend service is runing !”了,但是窗口页面是一片空白

空白的原因可能是你前端项目的端口和
JT$S)$YKPXCN`Q O383L0
不统一

@01Petard
Copy link

同样遇到了问题,将dev.frontend.force改为true后不会显示“Startup failed, please check frontend service is runing !”了,但是窗口页面是一片空白

空白的原因可能是你前端项目的端口和 JT$S)$YKPXCN`Q O383L0 不统一

非常感谢,目前已经解决了

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

5 participants