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

"rails g controller|scaffold ..." fails with "scss [not found]" error #74

Closed
christiannelson opened this issue Jul 28, 2016 · 8 comments · Fixed by #112
Closed

"rails g controller|scaffold ..." fails with "scss [not found]" error #74

christiannelson opened this issue Jul 28, 2016 · 8 comments · Fixed by #112

Comments

@christiannelson
Copy link

christiannelson commented Jul 28, 2016

Thanks for your work on sassc-rails! We switched over to using it as a default on all new projects.

When using rails generators, we noticed that generating views fails with a "scss [not found]" error.

% rails g controller Widgets index show
Running via Spring preloader in process 65874
      create  app/controllers/widgets_controller.rb
       route  get 'widgets/show'
       route  get 'widgets/index'
      invoke  slim
      create    app/views/widgets
      create    app/views/widgets/index.html.slim
      create    app/views/widgets/show.html.slim
      invoke  rspec
      invoke  assets
      invoke    coffee
      create      app/assets/javascripts/widgets.coffee
       error    scss [not found]

This works using sass-rails. If sassc-rails is a drop in replacement for sass-rails, it seems to me that adding support for the generator would be a good idea.

If you agree, I can look into what it would take. LMK.

@jerome-diver
Copy link

is there a solution or someone interested there, we are now in jully 2018...

@qortex
Copy link

qortex commented Sep 25, 2018

Is there a solution for this issue? As it is supposed to be a replacement for sass-rails deprecation, it would be nice to have this work.

@bolandrm
Copy link
Member

A PR would be welcome for this issue!

@qortex
Copy link

qortex commented Sep 25, 2018

I understand there was one here: #86

But there is no clue why it was closed without proper fix.

@qortex
Copy link

qortex commented Oct 10, 2018

Is there any plan to fix this? This can be really annoying, and I suppose it is not complicated to fix?

@zenzei
Copy link

zenzei commented Feb 11, 2019

Related to this, not sure why but i still have a similar an issue when using scaffold with sassc-rails.
The relevant error message is

activesupport-5.2.2/lib/active_support/dependencies.rb:291:in `require': cannot load such file -- sass/css (LoadError)

Adding sass-rails as not required make scaffold to work.
gem 'sass-rails', require: false

@jenskutilek
Copy link

Adding sass-rails as not required make scaffold to work.
gem 'sass-rails', require: false

It works, but then you get a plain CSS template file, not SCSS.

@zenzei
Copy link

zenzei commented Feb 13, 2019

Adding sass-rails as not required make scaffold to work.
gem 'sass-rails', require: false

It works, but then you get a plain CSS template file, not SCSS.

In my environment i'm getting a file with a scss extension 😕

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

Successfully merging a pull request may close this issue.

6 participants