Skip to content
This repository has been archived by the owner on Nov 18, 2022. It is now read-only.

VITE NOT READY #91

Closed
welcome14 opened this issue May 13, 2021 · 5 comments
Closed

VITE NOT READY #91

welcome14 opened this issue May 13, 2021 · 5 comments

Comments

@welcome14
Copy link

Hi,
I have this
"VITE NOT READY, WILL TRY AGAIN IN 200ms
READY
VITE NOT READY, WILL TRY AGAIN IN 200ms
VITE NOT READY, WILL TRY AGAIN IN 200ms
VITE NOT READY, WILL TRY AGAIN IN 200ms
VITE NOT READY, WILL TRY AGAIN IN 200ms"

in my console and the desktop app reload continuos, why ?

@appinteractive
Copy link
Owner

Hey as the vite process may take a bit longer then the window creation I have added a retry as opening a window for an url that is not reachable will fail.

Could it be, that there is an error in you app, which errors when opening it? It may have swollen the error message? Or is it rubbing on another port?

Their might be a better way to deal with that retry issue but I'm not found it until now. But contributions are very welcome. 😎

@appinteractive
Copy link
Owner

@welcome14 did you found a Solution? Or was your vite running on another port?

@welcome14
Copy link
Author

@welcome14 did you found a Solution? Or was your vite running on another port?

I have not tried.

@joelbradbury
Copy link

joelbradbury commented Aug 11, 2021

I ran into this too - it's only an issue if you run the yarn dev:electron call directly, without also calling the yarn dev:vite command elsewhere. Simply - the dev:electron call never tries to start vite, so it just hangs waiting.

To fix, either:

  • run the dev:vite command directly elsewhere, as well as the dev:electron command
  • or just yarn dev which runs both dev:vite and dev:electron.

For reference the specific error returned is the standard:

  errno: -102,
  code: 'ERR_CONNECTION_REFUSED',
  url: 'http://localhost:3333/'
}

because vite isn't running.

@appinteractive
Copy link
Owner

Added a hint to the readme, thanks @joelbradbury!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants