question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

no such file to load -- autoprefixer-rails

See original GitHub issue

I’ve followed the instructions and installed everything. This is what I get when I tell compass to watch the directory.

no such file to load – autoprefixer-rails org/jruby/RubyKernel.java:1062:in require' file:/Applications/compass.app/Contents/Resources/Java/compass-app.jar!/require_patch.rb:6:inrequire’ /Applications/compass.app/Contents/Resources/lib/ruby/compass_0.12/compass-0.12.2/lib/compass/configuration/data.rb:161:in require' /Users/matthewcarleton/Desktop/prefix_test/config.rb:1:inparse_string’ org/jruby/RubyKernel.java:1112:in eval' /Applications/compass.app/Contents/Resources/lib/ruby/compass_0.12/compass-0.12.2/lib/compass/configuration/serialization.rb:24:inparse_string’ /Applications/compass.app/Contents/Resources/lib/ruby/compass_0.12/compass-0.12.2/lib/compass/configuration/serialization.rb:15:in _parse' org/jruby/RubyIO.java:1139:inopen’ org/jruby/RubyKernel.java:296:in open' file:/Applications/compass.app/Contents/Resources/Java/lib/java/jruby-complete.jar!/META-INF/jruby.home/lib/ruby/1.8/open-uri.rb:32:inopen’ /Applications/compass.app/Contents/Resources/lib/ruby/compass_0.12/compass-0.12.2/lib/compass/configuration/serialization.rb:14:in _parse' /Applications/compass.app/Contents/Resources/lib/ruby/compass_0.12/compass-0.12.2/lib/compass/configuration/file_data.rb:7:innew_from_file’ /Applications/compass.app/Contents/Resources/lib/ruby/compass_0.12/compass-0.12.2/lib/compass/configuration/inheritance.rb:204:in with_defaults' /Applications/compass.app/Contents/Resources/lib/ruby/compass_0.12/compass-0.12.2/lib/compass/configuration/file_data.rb:6:innew_from_file’ /Applications/compass.app/Contents/Resources/lib/ruby/compass_0.12/compass-0.12.2/lib/compass/configuration/helpers.rb:42:in configuration_for' /Applications/compass.app/Contents/Resources/lib/ruby/compass_0.12/compass-0.12.2/lib/compass/configuration/helpers.rb:97:inadd_project_configuration’ /Applications/compass.app/Contents/Resources/lib/ruby/compass_0.12/compass-0.12.2/lib/compass/commands/project_base.rb:31:in add_project_configuration' /Applications/compass.app/Contents/Resources/lib/ruby/compass_0.12/compass-0.12.2/lib/compass/commands/project_base.rb:25:inconfigure!’ /Applications/compass.app/Contents/Resources/lib/ruby/compass_0.12/compass-0.12.2/lib/compass/commands/project_base.rb:15:in initialize' /Applications/compass.app/Contents/Resources/lib/ruby/compass_0.12/compass-0.12.2/lib/compass/commands/update_project.rb:37:ininitialize’ file:/Applications/compass.app/Contents/Resources/Java/compass-app.jar!/ui/tray.rb:430:in watch' file:/Applications/compass.app/Contents/Resources/Java/compass-app.jar!/app.rb:207:intry’ file:/Applications/compass.app/Contents/Resources/Java/compass-app.jar!/ui/tray.rb:425:in watch' file:/Applications/compass.app/Contents/Resources/Java/compass-app.jar!/ui/tray.rb:142:incompass_switch_handler’ file:/Applications/compass.app/Contents/Resources/Java/compass-app.jar!/ui/tray.rb:71:in run' file:/Applications/compass.app/Contents/Resources/Java/compass-app.jar!/main.rb:116:inrun_tray’ file:/Applications/compass.app/Contents/Resources/Java/compass-app.jar!/main.rb:132:in (root)' org/jruby/RubyKernel.java:1062:inrequire’ file:/Applications/compass.app/Contents/Resources/Java/compass-app.jar!/main.rb:1:in `(root)’

Issue Analytics

  • State:closed
  • Created 10 years ago
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
theodorosploumiscommented, Feb 13, 2015

You must add the gem in your Gemfile (see example below). And then run bundle exec compass compile again to compile the new gem.

source "https://rubygems.org"

gem "sass", "~>3.3"
gem "compass", "~>1.0"
gem "breakpoint", "~>2.5.0"
gem "singularitygs", "~>1.4"
gem "autoprefixer-rails", "~>5.1.0"
0reactions
esavelyevacommented, Mar 16, 2015

@theodorosploumis, thank you very much! Your answer was of great help for me 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot load such file -- autoprefixer-rails (LoadError) | Rails 5
this message appears regardless of the command: rails db:migrate , rails s , rails c , etc... Edit: I also tried the command...
Read more >
[Solved]-Cannot load such file -- autoprefixer-rails (LoadError)
Coding example for the question Cannot load such file -- autoprefixer-rails (LoadError) | Rails 5-ruby-on-rails.
Read more >
no such file to load -- autoprefixer-rails - - Bountysource
This is what I get when I tell compass to watch the directory. no such file to load -- autoprefixer-rails org/jruby/RubyKernel.java:1062:in require'
Read more >
autoprefixer-rails 10.4.7.0 - RubyGems
Parse CSS and add vendor prefixes to CSS rules using values from the Can I Use website. Versions: 10.4.7.0 - May 03, 2022...
Read more >
cannot load such file -- sass (when pushing to Heroku) : r/rails
LoadError : cannot load such file -- sass (when pushing to Heroku) · Uninstalling and reinstalling sassc-rails gemMoving gem 'sassc-rails' to line ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found