kirillplatonov / hotwire-livereload

Live reload gem for Hotwire Rails apps.
MIT License
483 stars 28 forks source link

hotwire-livereload.js was not found #39

Closed danieldocki closed 1 year ago

danieldocki commented 1 year ago
Propshaft::MissingAssetError in Home#show
Showing /Users/danieldocki/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/hotwire-livereload-1.2.3/app/views/hotwire/livereload/_head_action_cable.html.erb where line #2 raised:

The asset 'hotwire-livereload.js' was not found in the load path.
16:49:30 web.1      | ActionView::Template::Error (The asset 'hotwire-livereload.js' was not found in the load path.):
16:49:30 web.1      |     1: <% if Rails.env.development? %>
16:49:30 web.1      |     2:   <%= javascript_include_tag('hotwire-livereload', defer: true) %>
16:49:30 web.1      |     3: <% end %>

What can it be?

danieldocki commented 1 year ago

Sorry, I ran RAILS_ENV=production bundle exec rake assets:precompile before bin/dev 😞