0

Rails 6 - Can't Find Application.js

 2 years ago
source link: https://fuzzyblog.io/blog/rails/2021/12/18/rails-6-can-t-find-application-js.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Rails 6 - Can't Find Application.js

Dec 18, 2021

So I started fiddling about with a new Rails project and after finding a likely starting point, I immediately ended up with this:

Webpacker can't find application.js in

I'm old school Rails and I find the whole asset compilation situation, honestly, perplexing. The solution turned out to be:

bundle exec rails webpacker:install

after the normal:

git clone foo
bundle install
bundle exec rake db:migrate

I have no idea why the bundler install doesn't handle executing webpacker:install but cie la vie. The more things change, the more they stay the same …


Posted In: #rails


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK