Tried yesterday hotwire with rails 7.4.3 abd I had some issues there.
Following official video tutorial by running commands like:
rails new chat --skip-javascript
gem 'hotwire-rails'
rails hotwire:install
I started to get console error:
You must either be running with node (package.json) or importmap-rails (config/importmap.rb) to use this gem.
Solution was to add missing importmap's by:
./bin/bundle add importmap-rails
./bin/rails importmap:install
After that final command was successful:
rails hotwire:install
Top comments (1)
Just a small fix for trying hotwire tutorial today with latest rails version.