You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using Rails 7, jsbundling-rails and webpack we're having some issues with rails_live_reload triggering the reload before asset compilation finishes.
This is covered in the readme
...but in case your asset compilation takes couple of seconds, this might not work propperly, in that case we would recommend you to add configuration to watch output folder.
I'm having the same issue and watching for assets/builds instead does not solve the issue for me either.
The issue happens because the reload is called on first detected change not last change and so one file may have been recompiled but other files may not yet have been finished.
Adding a delay that adds a window of time to wait for other changes to happen would be the simplest option
Using Rails 7, jsbundling-rails and webpack we're having some issues with rails_live_reload triggering the reload before asset compilation finishes.
This is covered in the readme
Which I've done
The problem is - it still seems like reload is occurring before compilation is actually done. Every other reload we see errors like the following
Forcing a refresh fixes it.
I was thinking maybe allowing for a static delay in config (after detecting change but before reload) might be a good solution.
The text was updated successfully, but these errors were encountered: