-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Skipping build. Vite assets are already up-to-date (causes vite not to connect) #20
Comments
I have also seen this error:
When visiting the URL from:
|
I am also randomly seeing this in the rails logs:
|
Please share the structure of your Try starting the dev server by running If that does not work, try deleting built assets and compile manually: There's an example Rails app on this repo that you can check to verify your setup (entrypoints, source code location, etc). |
@ElMassimo here are the contents of those files https://gist.github.com/cj/e9f978c5d1c59ba0757b1ba0a5483f0d (I have also tried removing the babel plugin).
This is what I used as an example to make sure mine was setup correctly https://github.com/ElMassimo/vite_ruby/tree/main/examples/rails I will try and get you a standalone repo today/tomorrow, thank you again for taking a look! |
@ElMassimo here is also a full output of the rails console logs when starting up https://gist.github.com/cj/506fe28316a4216767fd56f1537de18f |
A standalone repo would be great, thanks. I won't have computer access until Wednesday, I'll take a look then. Looking at the traces you added, something that seems odd is that these requests are not being forwarded to Vite by the dev server proxy, can you check that it's being included in the Rack middleware? Also, which Vite version are you using? Sidenote: The components folder should live inside your source code dir (app/assets), or make sure to add it to |
@ElMassimo so looks like I figured out a temporary fix by increasing |
The timeout should not be related with the compilation time, it's the timeout to check whether the dev server is running. What hardware are you using, are you running in a VM or other resource-constrained environment? @cj Make sure to add the {
"all": {
"watchAdditionalPaths": ["app/components/**/*"]
}, |
Added a troubleshooting section describing possible causes. Closing this for now, we can reopen it if none of the steps help, and you provide a reproduction 😃 |
Running these fixed my problems |
When I receive the following:
It does not output the following in the console and vite's auto-refresh does not work:
p.s. I am also getting a 404 error randomly.
Let me know if I can provide any more information.
Cheers!
The text was updated successfully, but these errors were encountered: