I’m trying to run front end of the Age-viewer-go
on ubuntu 22.04
using the wails dev
command in age-viewer folder of the project.
but it gives the following error as shown in the image
failed to find the Vite server URL
I’m trying to run front end of the Age-viewer-go
on ubuntu 22.04
using the wails dev
command in age-viewer folder of the project.
but it gives the following error as shown in the image
failed to find the Vite server URL
2
Answers
Firstly, from the
age-viewer/frontend
directory runnpm install react-router-dom
.The issue could be due to vite server port assignment.
For that try using a custom port for vite:
ageage-viewerfrontendvite.config.js
The error could also be due to some problem with the frontend because after compiling the frontend wails is running
npm run dev
from thewails.json
. Try running the frontend separately to test if it is working correctly.To do that run:
cd age-viewer/frontend
npm run dev
According to your error, you can try the following troubleshooting steps:
This should start the server and print its URL.
Check your configuration in
wails.json
to ensure that frontend corresponds to correct Vite URL and port.Ensure that port is available. Check using:
node_modules
.