New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sprockets DependencyError #49
Comments
Also, I'm using jQuery 2.1.0 and rails_behaviors (instead of jquery_ujs). |
I also tried putting the peek stylesheets in their own manifest and used Sprockets The gem is setting my config.assets.paths correctly, though: [4] pry(main)> Rails.application.config.assets.paths
[
[ 0] "/Users/adamyonk/.code/spaces@librato/app/assets/images",
[ 1] "/Users/adamyonk/.code/spaces@librato/app/assets/javascripts",
[ 2] "/Users/adamyonk/.code/spaces@librato/app/assets/stylesheets",
[ 3] "/Users/adamyonk/.code/spaces@librato/vendor/assets/bower_components",
[ 4] "/Users/adamyonk/.code/spaces@librato/vendor/assets/fonts",
[ 5] "/Users/adamyonk/.code/spaces@librato/vendor/assets/javascripts",
[ 6] "/Users/adamyonk/.code/spaces@librato/vendor/assets/stylesheets",
[ 7] "/Users/adamyonk/.gem/ruby/2.1.1/gems/peek-performance_bar-1.1.3/app/assets/javascripts",
[ 8] "/Users/adamyonk/.gem/ruby/2.1.1/gems/peek-performance_bar-1.1.3/app/assets/stylesheets",
[ 9] "/Users/adamyonk/.gem/ruby/2.1.1/gems/peek-0.1.8/app/assets/images",
[10] "/Users/adamyonk/.gem/ruby/2.1.1/gems/peek-0.1.8/app/assets/javascripts",
[11] "/Users/adamyonk/.gem/ruby/2.1.1/gems/peek-0.1.8/app/assets/stylesheets",
[12] "/Users/adamyonk/.gem/ruby/2.1.1/gems/coffee-rails-4.0.1/lib/assets/javascripts",
[13] "/Users/adamyonk/.code/spaces@librato/vendor/assets/bower_components"
] |
Looks like it's correctly in your load path:
I tried this out locally and it worked on my machine. Is there any way you can create a reproducible example? rails/sprockets-rails#126 may have fixed it.
|
If I go into the gem and rename |
Gosh, now it's only happening sometimes. I'll keep debugging and re-open this if I think it has to do with peek. Sorry, for the trouble. |
No worries! Please do re-open if it happens again. |
I get the following error when I try to
@import peek
in my application.css.sass. Rails 4.1.Sprockets::Rails::Helper::DependencyError at /
Asset depends on 'peek/bar/production.gif' to generate properly but has not declared the dependency
Please add:
//= depend_on_asset "peek/bar/production.gif"
to '/app/assets/stylesheets/application.css.sass'The text was updated successfully, but these errors were encountered: