Rails: Sprockets::Rails::Helper::AssetNotPrecompiled in development Rails: Sprockets::Rails::Helper::AssetNotPrecompiled in development ruby-on-rails ruby-on-rails

Rails: Sprockets::Rails::Helper::AssetNotPrecompiled in development


Neither of these worked for me (rails-5.0.7, sprockets-3.7.2, sprockets-rails-3.2.1):

config.assets.debug = falseconfig.assets.unknown_asset_fallback = true

But this did:

config.assets.check_precompiled_asset = false


//= link_directory ../javascripts .js

adding this to
app/assets/config/manifest.js
worked for me (working on rails 6)


I've had got the same problem and I fixed it removing all cache files inside tmp folder

rm -rf tmp/cache/assets