There are very likely raise an error: unable to connect to frontend server Please check it is running - FRONTEND_DEVSERVER_URL='http://localhost:9245' #5059
Replies: 5 comments
-
|
same for me with Wails3 and Vite 8.0.1 (same issue with 8.0.0) |
Beta Was this translation helpful? Give feedback.
-
|
I had to remove the double dash from the run dev command since I'm using pnpm as example... dev:frontend:
summary: Runs the frontend in development mode
dir: frontend
deps:
- task: install:frontend:deps
cmds:
- - pnpm run dev -- --port {{.VITE_PORT}} --strictPort
+ - pnpm run dev --port {{.VITE_PORT}} --strictPort |
Beta Was this translation helpful? Give feedback.
-
|
This error means Wails started before the frontend dev server was ready. A few things to check: 1. Package manager double-dash issue (pnpm) - - pnpm run dev -- --port {{.VITE_PORT}} --strictPort
+ - pnpm run dev --port {{.VITE_PORT}} --strictPort2. Port conflict 3. Slow install / first run 4. Vite version incompatibility If none of these fix it, please share your full |
Beta Was this translation helpful? Give feedback.
-
|
This is hacky, but I changed my executes:
- cmd: wails3 build DEV=true
type: blocking
- cmd: wails3 task common:dev:frontend
type: background
- cmd: sleep 5
type: blocking
- cmd: wails3 task run
type: primaryThe |
Beta Was this translation helpful? Give feedback.
-
|
For me, I commented out I've modified the frontend configuration to "dev": "vite --host ::", I'm honestly exasperated. I didn't have this issue with Wails v2, where projects would run immediately after initialization. Now, using the latest version, a freshly downloaded project ( I tried this two months ago and it didn't work then either, but then it suddenly started working again the next day for no apparent reason. This code configuration in build\Taskfile.yml can run successfully without being commented out. Console outputNeed documentation? Run: wails3 docs ♥ If Wails is useful to you or your company, please consider sponsoring the project: wails3 sponsor task: [windows:run] bin/MediaViewer.exe Apr 29 00:05:41.758 INF Build Info: Wails=v3.0.0-alpha.74 Compiler=go1.26.1 -compiler=gc -gcflags="all=-l" DefaultGODEBUG="cryptocustomrand=1,tlssecpmlkem=0,urlstrictcolons=0" CGO_ENABLED=0 GOARCH=amd64 GOOS=windows GOAMD64=v1 -buildmode=exe Apr 29 00:05:41.759 INF AssetServer Info: middleware=true handler=true devServerURL=http://localhost:9245 Apr 29 00:05:41.759 INF Platform Info: Go-WebView2Loader=true WebView2=147.0.3912.86 ID=21H2 Name="Windows 10 Enterprise LTSC 2021" Version="2009 (Build: 19044)" Branding="Windows 10 企业版 LTSC" Apr 29 00:05:41.782 INF Waiting for frontend dev server to start... url=http://localhost:9245 Apr 29 00:05:42.297 INF Retrying... task: [common:install:frontend:deps] npm install Apr 29 00:05:43.301 INF Retrying... Apr 29 00:05:44.304 INF Retrying...up to date, audited 33 packages in 879ms 4 packages are looking for funding 4 moderate severity vulnerabilities To address issues that do not require attention, run: To address all issues (including breaking changes), run: Run
Apr 29 00:05:46.310 INF Retrying... VITE v5.4.21 ready in 425 ms ➜ Local: http://localhost:9245/ ******************************** FATAL *********************************
**************************** Error Details ***************************** ERROR task: Failed to run task "run": exit status 1
I've asked Gemini Pro over 30 questions, and it still hasn't been able to solve it. |
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
-
Beta Was this translation helpful? Give feedback.
All reactions