Description
(TESTED ONLY ON v3)
If you use vite as your frontend and use the latest version (7.1.8), wails doesn't connect to the dev server. What happens is that the server goes online but it can't be reached (not even if you manually go to that URL).
I found a workaround for now: you need to manually run the frontend server, then run wails3 dev in another terminal.
To Reproduce
- Install vite 7.1.8
- run
wails3 dev
Expected behaviour
It should connect to the dev server
Screenshots
No response
Attempted Fixes
I've tried to update my node version, edit the commands but nothing worked.
System Details
Wails Doctor
# Wails
Version | v2.10.2
# System
┌────────────────────────────────────────────────────────────────────────┐
| OS | Windows 10 Home |
| Version | 2009 (Build: 26100) |
| ID | 24H2 |
| Branding | Windows 11 Home |
| Go Version | go1.25.1 |
| Platform | windows |
| Architecture | amd64 |
| CPU | AMD Ryzen 5 5600X 6-Core Processor |
| GPU | NVIDIA GeForce RTX 3060 (NVIDIA) - Driver: 32.0.15.8088 |
| Memory | 32GB |
└────────────────────────────────────────────────────────────────────────┘
# Dependencies
┌───────────────────────────────────────────────────────┐
| Dependency | Package Name | Status | Version |
| WebView2 | N/A | Installed | 140.0.3485.94 |
| Nodejs | N/A | Installed | 24.9.0 |
| npm | N/A | Installed | 10.5.0 |
| *upx | N/A | Available | |
| *nsis | N/A | Available | |
| |
└─────────────── * - Optional Dependency ───────────────┘
Additional context
Logs:
PS C:\Users\Alessandro\Documents\GitHub\ac-telemetry> wails3 dev
2025/10/03 10:53:13 INFO Changing Working Directory dir=C:\Users\Alessandro\Documents\GitHub\ac-telemetry/
2025/10/03 10:53:13 INFO Refresh Starting...
task: Task "common:install:frontend:deps" is up to date
Need documentation? Run: wails3 docs
♥ If Wails is useful to you or your company, please consider sponsoring the project: wails3 sponsor
task: [windows:common:go:mod:tidy] go mod tidy
task: [windows:common:go:mod:tidy] go mod tidy
task: Task "windows:common:generate:icons" is up to date
task: Task "common:install:frontend:deps" is up to date
task: [common:dev:frontend] pnpm run dev -- --port 9245 --strictPort
> frontend@0.0.0 dev C:\Users\Alessandro\Documents\GitHub\ac-telemetry\frontend
> vite "--" "--port" "9245" "--strictPort"
Need documentation? Run: wails3 docs
♥ If Wails is useful to you or your company, please consider sponsoring the project: wails3 sponsor
task: Task "windows:common:install:frontend:deps" is up to date
task: [generate:bindings (BUILD_FLAGS=-buildvcs=false -gcflags=all="-l")] wails3 generate bindings -f '-buildvcs=false -gcflags=all="-l"' -clean=true
Wails (v3.0.0-dev) Generate Bindings
INFO Processed: 448 Packages, 0 Services, 0 Methods, 0 Enums, 0 Models in 13.0109651s.
INFO Output directory: C:\Users\Alessandro\Documents\GitHub\ac-telemetry\frontend\bindings
task: Task "build:frontend (PRODUCTION=)" is up to date
task: [windows:generate:syso] wails3 generate syso -arch amd64 -icon windows/icon.ico -manifest windows/wails.exe.manifest -info windows/info.json -out ../wails_windows_amd64.syso
task: [windows:build] go build -buildvcs=false -gcflags=all="-l" -o bin/myproject.exe
task: [windows:build] powershell Remove-item *.syso
Need documentation? Run: wails3 docs
♥ If Wails is useful to you or your company, please consider sponsoring the project: wails3 sponsor
task: [windows:run] bin/myproject.exe
Oct 3 10:55:27.490 INF Build Info: Wails=v3.0.0-alpha.26 Compiler=go1.25.1 GOAMD64=v1 -buildmode=exe -compiler=gc -gcflags="all=-l" DefaultGODEBUG="containermaxprocs=0,decoratemappings=0,tlssha1=1,updatemaxprocs=0,x509sha256skid=0" CGO_ENABLED=0 GOARCH=amd64 GOOS=windows
Oct 3 10:55:27.491 INF Platform Info: Go-WebView2Loader=true WebView2=140.0.3485.94 ID=24H2 Name="Windows 10 Home" Version="2009 (Build: 26100)" Branding="Windows 11 Home"
Oct 3 10:55:27.491 INF AssetServer Info: middleware=true handler=true devServerURL=http://localhost:9245
Initializing database...
Oct 3 10:55:27.524 INF Waiting for frontend dev server to start... url=http://localhost:9245
log Local IP: 192.168.1.9
log Sent handshaker: id=1 version=1 op=0
Handshake sent... awaiting response.
Oct 3 10:55:28.033 INF Retrying...
Oct 3 10:55:29.036 INF Retrying...
Oct 3 10:55:30.039 INF Retrying...
Oct 3 10:55:31.041 INF Retrying...
Oct 3 10:55:32.044 INF Retrying...
Oct 3 10:55:32.548 ERR
******************************** FATAL *********************************
* There has been a catastrophic failure in your application. *
**************************** Error Details *****************************
unable to connect to frontend server. Please check it is running - FRONTEND_DEVSERVER_URL='http://localhost:9245'************************************************************************
ERROR task: Failed to run task "run": exit status 1
2025/10/03 10:55:32 ERROR Process exited with error exec="wails3 task run" err="exit status 1"
2025/10/03 10:55:32 ERROR Could not refresh processes due to execution errors```
Description
(TESTED ONLY ON v3)
If you use vite as your frontend and use the latest version (7.1.8), wails doesn't connect to the dev server. What happens is that the server goes online but it can't be reached (not even if you manually go to that URL).
I found a workaround for now: you need to manually run the frontend server, then run
wails3 devin another terminal.To Reproduce
wails3 devExpected behaviour
It should connect to the dev server
Screenshots
No response
Attempted Fixes
I've tried to update my node version, edit the commands but nothing worked.
System Details
Wails Doctor # Wails Version | v2.10.2 # System ┌────────────────────────────────────────────────────────────────────────┐ | OS | Windows 10 Home | | Version | 2009 (Build: 26100) | | ID | 24H2 | | Branding | Windows 11 Home | | Go Version | go1.25.1 | | Platform | windows | | Architecture | amd64 | | CPU | AMD Ryzen 5 5600X 6-Core Processor | | GPU | NVIDIA GeForce RTX 3060 (NVIDIA) - Driver: 32.0.15.8088 | | Memory | 32GB | └────────────────────────────────────────────────────────────────────────┘ # Dependencies ┌───────────────────────────────────────────────────────┐ | Dependency | Package Name | Status | Version | | WebView2 | N/A | Installed | 140.0.3485.94 | | Nodejs | N/A | Installed | 24.9.0 | | npm | N/A | Installed | 10.5.0 | | *upx | N/A | Available | | | *nsis | N/A | Available | | | | └─────────────── * - Optional Dependency ───────────────┘Additional context
Logs: