Open riyanswat opened 11 months ago
If you run Vite outside of Wails what url does it listen on?
Wails CLI v2.6.0
Executing: go mod tidy • Generating bindings: Done. • Installing frontend dependencies: Done. • Compiling frontend: Done.
v3-admin@3.1.3 dev vue-cli-service serve
INFO Starting development server... [92%] sealing (asset processing SourceMapDevToolPlugin)
ERROR failed to find Vite server URL
♥ If Wails is useful to you or your company, please consider sponsoring the project:
https://github.com/sponsors/leaanthony
node:events:491
throw er; // Unhandled 'error' event
^
Error: write EPIPE
at afterWriteDispatched (node:internal/stream_base_commons:160:15)
at writeGeneric (node:internal/stream_base_commons:151:3)
at Socket._writeGeneric (node:net:905:11)
at Socket._write (node:net:917:8)
at writeOrBuffer (node:internal/streams/writable:391:12)
at _write (node:internal/streams/writable:332:10)
at Socket.Writable.write (node:internal/streams/writable:336:10)
at render (/Users/lvluo/Desktop/github.com/js+ui/test-gui/frontend/node_modules/.pnpm/log-update@2.3.0/node_modules/log-update/index.js:40:10)
at handler (/Users/lvluo/Desktop/github.com/js+ui/test-gui/frontend/node_modules/.pnpm/progress-webpack-plugin@1.0.12_webpack@5.70.0/node_modules/progress-webpack-plugin/index.js:117:7)
at Object.call (/Users/lvluo/Desktop/github.com/js+ui/test-gui/frontend/node_modules/.pnpm/webpack@5.70.0/node_modules/webpack/lib/ProgressPlugin.js:507:6)
at Hook.eval [as callAsync] (eval at create (/Users/lvluo/Desktop/github.com/js+ui/test-gui/frontend/node_modules/.pnpm/tapable@2.2.1/node_modules/tapable/lib/HookCodeFactory.js:33:10),
cd frontend using npm run dev is normal.
If you run Vite outside of Wails what url does it listen on?
In the frontend dir in the wails app, the url is http://localhost:5173/
cd frontend using npm run dev is normal.
Yes, but why isn't wails dev
throwing that error? I want to get the wails dev
command to work but I don't know why it's causing that issue.
Looks like a node compatibility issue. Try +1 and -1 versions via nvm
Description
I've been getting this error for the last few days. It used to be fine and would open a new window that would instantly show the changes I made in the frontend. But now when I run
wails dev
, it throws the following error:To Reproduce
wails dev
Expected behaviour
It should open a windows (just like before) and should reflect any changes I made to the frontend.
Screenshots
No response
Attempted Fixes
frontend:dev:serverUrl
and I changed"frontend:dev:serverUrl": "auto"
in the wails.json file to a localhost url but it still didn't work. (This issue and the suggested solutions didn't work either: https://github.com/wailsapp/wails/issues/1611)System Details
Additional context
No response