1)修改"main"配置,将其指向为"main": "electron/main.js"; 2)增加一个针对 electron 启动的"scripts","electron:dev": "wait-on tcp:3000 && cross-env NODE_ENV=development electron ./"。 当前项目配置如下所示: { "name": "webim-vue3-demo", "version": "0.1.0", "private": true, "main...
Ran into this same problem as well. Thankfully (I guess?) I know what port my app has to run on and have had no problems changing fromwait-on http://localhost:300towait-on tcp:3000. downeyfe reacted with thumbs up emoji 👍 ...
wait-on: 'npx wait-on --timeout 60000 tcp:5173' and that worked fine. I also tried it for the react-scripts example (using port 3000 instead) where it didn't work. It seems there is not a "one-size-fits-all" solution here. Your npx --yes prompted me to think about pre-install...
1)修改"main"配置,将其指向为"main": "electron/main.js"; 2)增加一个针对 electron 启动的"scripts","electron:dev": "wait-on tcp:3000 && cross-env NODE_ENV=development electron ./"。 当前项目配置如下所示: { "name": "webim-vue3-demo", "version": "0.1.0", "private": true, "main...