Search code examples
apache-agewails

failed to find Vite server URL while running front end of apache age viewer Desktop (Go)


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

image showing error


Solution

  • According to your error, you can try the following troubleshooting steps:

    1. First of all, ensure that Vite is correctly installed. In your terminal, run:
    npx vite --version 
    OR 
    yarn vite --version
    
    1. Start the server manually. Run (from the root of your directory:
    npm vite 
    OR 
    yarn vite
    

    This should start the server and print its URL.

    1. Check your configuration in wails.json to ensure that frontend corresponds to correct Vite URL and port.

    2. Ensure that port is available. Check using:

    lsof -i tcp:<port_number>
    
    • If any of the above doesn't work, try rebuilding your project by deleting and reinstalling node_modules.