Based on the information provided, it seems that the Vite server is not able to establish a connection with the browser, resulting in pending requests. Here are a few steps you can try to resolve the issue:
-
Check if the port specified in the Vite server configuration (in this case, port 5173) is not being used by any other process. You can use the following command in the terminal to check for any conflicting processes:
netstat -ano | findstr :5173If any process is using the port, you can either terminate that process or change the port number in the Vite server configuration.
-
Ensure that your firewall or antivirus software is not blocking the connection. Even though you mentioned that you disabled them, double-check to make sure they are completely turned off or add an exception for the Vite server.
-
Try running the Vite server with the
--hostflag to explicitly specify the host. For example:vite --host localhost -
Update your Vite and Laravel Vite Plugin versions to the latest stable releases. You can do this by running the following commands in your project directory:
npm install vite@latest composer require laravel/vite-plugin@latest -
If none of the above steps work, you can try reinstalling Vite and its dependencies. Delete the
node_modulesdirectory and reinstall the dependencies using the following commands:npm install --force
If the issue still persists, it might be worth checking the Vite documentation or reaching out to the Vite community for further assistance.