Skip to content
This repository has been archived by the owner on Mar 23, 2024. It is now read-only.

sprockets-rails >= 3 throws "Asset was not declared to be precompiled in production" #262

Open
leppert opened this issue May 4, 2016 · 2 comments

Comments

@leppert
Copy link
Contributor

leppert commented May 4, 2016

See also: rails/sprockets-rails#297

@mccallumjack
Copy link

We were getting the same error but setting config.check_precompiled_asset = false solved it.

This was added to sprockets-rails recently in commit: rails/sprockets-rails@b4f9006

@kevinluo201
Copy link

Rails.application.config.assets.precompile += Rails.application.config.requirejs.user_config['modules'].map { |m| "#{m['name']}.js" }
Do you think this workaround reasonable?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants