Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Asset was not declared to be precompiled in production" even though I'm in development mode

This is the full error:

Asset was not declared to be precompiled in production.
Add `Rails.application.config.assets.precompile += %w( tutorial.js )` to `config/initializers/assets.rb` and restart your server

When the server starts up, it say that it's in development:

=> Booting Puma
=> Rails 5.1.7 application starting in development
like image 587
lokove Avatar asked Oct 15 '25 17:10

lokove


1 Answers

Sometimes clearing the tmp can help. rake tmp:clear

like image 146
Hank Phung Avatar answered Oct 18 '25 06:10

Hank Phung