-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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::Rails::Helper::DependencyError #578
Comments
The error was resolved when the following contents add to vendor/assets/stylesheets/bootstrap.scss.
|
I also receive this error, and that workaround doesn't fix a similar error preventing me from running the rails_admin engine |
@hico-horiuchi This was fixed, and will be in 3.1.2. Please use master for now. @zezantam rails_admin is using bootstrap-sass 2, which does not have these directives. Bootstrap 2 is no longer supported, but the fix would be the same. |
Looking forward to the 3.1.2 release with the fix for this error. |
Following the advice to use master, got this to work by putting the following in my Gemfile:
|
@johnbaldwin The usual thing to do is: gem 'bootstrap-sass', git: 'https://github.com/twbs/bootstrap-sass' Using an |
@glebm Worked great, Thanks! |
What's holding up the 3.1.2 release? Seems to be working. |
@corysimmons To make life easier, bootstrap-sass releases are in sync with twbs/bootstrap. You can easily use master, or even a specific commit using |
Am I right, anyone using Rails 4.1.0 will see this error? And have to make a temporary change to their Gemfile pending release of bootstrap-sass 3.1.2? After they search the Internet to find what the error means? |
@DanielKehoe Oops, I missed the release of Rails 4.1.0, thanks for calling out. I'll release 3.1.1.1 shortly (with the latest updates from upstream). |
This is to fix a compatibility issue with sprockets + Rails >= 4.1.0, released on Apr 8. See #578
Cool. You rock. |
v3.1.1.1 is out!. If this breaks for Rails 3.2 due to the changes to mixin structure from upstream, the Readme or gemspec will need to be updated to point to sprockets backport gems. IIRC there was a problem with the old sprockets gem, which defines a custom Sass importer that does not add the current file's directory to the load path. I do not know if this is still a problem. The workaround for this here would be messy (and involve exploding a tree of imports into a giant flat list), so the backport looks like a better solution. The official backport fixes this and many other bugs: gem 'sprockets-rails', '=2.0.0.backport1'
gem 'sprockets', '=2.2.2.backport2' 📢 Looks like Rails 3.2 is no longer maintained for bugfixes. |
@glebm Thanks 👍 |
@glebm Belated thanks! |
This is to fix a compatibility issue with sprockets + Rails >= 4.1.0, released on Apr 8. See twbs/bootstrap-sass#578
This is to fix a compatibility issue with sprockets + Rails >= 4.1.0, released on Apr 8. See twbs/bootstrap-sass#578
When I run (Rails 4.1.0), Sprockets::Rails::Helper::DependencyError occurred.
The text was updated successfully, but these errors were encountered: