Skip to content
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

[BUG] topological sort failed: #21

Open
mario-amazing opened this issue Jan 14, 2024 · 2 comments
Open

[BUG] topological sort failed: #21

mario-amazing opened this issue Jan 14, 2024 · 2 comments

Comments

@mario-amazing
Copy link

mario-amazing commented Jan 14, 2024

When I use with activeadmin_addons gem (there is sass-rails inside), this error appears:

topological sort failed: [#<Rails::Initializable::Initializer:0x000000010e5500a0 @name=:setup_compression, @context=#<SassC::Rails::Railtie>, @options={:group=>:all, :after=>:setup_sass}, @block=#<Proc:0x000000010d157a58 /.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/sassc-rails-2.1.2/lib/sassc/rails/railtie.rb:72>>, #<Rails::Initializable::Initializer:0x000000010e49fc00 @name=:setup_sass, @context=#<SassC::Rails::Railtie>, @options={:group=>:all, :after=>:setup_compression}, @block=#<Proc:0x000000010f0d7040 /.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/dartsass-sprockets-3.1.0/lib/sassc/rails/railtie.rb:36>>, #<Rails::Initializable::Initializer:0x000000010e49fb60 @name=:setup_compression, @context=#<SassC::Rails::Railtie>, @options={:group=>:all, :after=>:setup_sass}, @block=#<Proc:0x000000010f0d6f78 /.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/dartsass-sprockets-3.1.0/lib/sassc/rails/railtie.rb:74>>]

@elondres-mim
Copy link

I had a similar problem due to Bootstrap. I believe you cannot have dartsass-sprockets and sass-rails together in any project, because they both use the same class namespace to maintain drop-in compatibility with each other.

@johncip
Copy link

johncip commented Aug 16, 2024

Thank you for that info @elondres-mim. I am using thoughtbot/administrate & it causes the same issue. In my case, I believe there's a (somewhat involved) way to get rid of the sassc-rails dependency within administrate, but for projects using libraries with a hard dependency on sassc-rails, the solution is probably to going to be using dartsass-rails for the main stylesheets.

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

No branches or pull requests

3 participants