chamnap / themes_on_rails

Adds multi themes support to your Rails 3/4/5 application
https://rubygems.org/gems/themes_on_rails
MIT License
217 stars 86 forks source link

Sprockets::CircularDependencyError when including all.css #5

Closed starrychloe closed 10 years ago

starrychloe commented 10 years ago

When I try to add a theme, it complains the file is already included.

= stylesheet_link_tag    "ancap/all", media: "all", "data-turbolinks-track" => true

I have to remove the following two lines to get it to work:

 *= require_self
 *= require_tree .

Here is the error message:

Sprockets::CircularDependencyError in Posts#index
Showing C:/Users/Chloe/workspace/Tyger/app/themes/ancap/views/layouts/ancap.haml where line #16 raised:

C:/Users/Chloe/workspace/Tyger/app/themes/ancap/assets/stylesheets/ancap/all.css.scss has already been required
starrychloe commented 10 years ago

Was due to renamed generated all.css because it was in the way when I moved my existing app's application.css.scss into the theme directory. Sass tried to parse require_tree in both files, leading up to error. Fixed by deleting generated all.css.