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
Hey @wheeyls, thanks for reporting this, and I'm really sorry it has taken so long to reply.
It's a tricky one, I'll try to have a think about the best way to handle it. We can't just let that error raise in way things are currently structured (otherwise apps without the Listen gem installed wouldn't get any file reloading capabilities) but this was always a pretty hacky solution - I'm sure there is a better way to handle it.
If an app has an old version of
listen
installed, AutoReload stops working with no explanation.I'm not sure how to fix this right now, but wanted to bring this up as an issue, might open a PR later.
To reproduce, in a Gemfile in a new app:
AutoReload will silently stop working. The reason is that we're catching this error:
On this line:
https://github.com/ViewComponent/lookbook/blob/8b123bf0ad2dc54e76303381797dd765a8074c7f/lib/lookbook/file_watcher.rb#L19
Could be resolved by letting the error raise? I'm not sure how to resolve an optional dependency.
The text was updated successfully, but these errors were encountered: