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

Solution 1:

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

config.assets.debug = false
config.assets.unknown_asset_fallback = true

But this did:

config.assets.check_precompiled_asset = false

Solution 2:

I had the same problem and fixed it by deleting all the cache files inside the tmp folder

rm -rf tmp/cache/assets