开发者

Rails: SASS not creating the CSS files

开发者 https://www.devze.com 2023-01-08 23:06 出处:网络
SASS is not creating the CSS files, but HAML is working just fine. I ran the following command: $: sass --watch scss:stylesheets

SASS is not creating the CSS files, but HAML is working just fine.

I ran the following command:

$: sass --watch scss:stylesheets
开发者_高级运维[true, ["scss", "stylesheets"]]

My main.scss file contains the following:

/* main.scss */

body {
    background: #000000;
}

The main.css file never gets generated. So I ran the following:

$: sass --update
NoMethodError: undefined method `split' for nil:NilClass
  Use --trace for backtrace.

What gives?

  • Running Rails 3
  • I've tried both haml and haml-edge


This is a known bug. A fix will probably be released tonight or tomorrow night.


I'm not sure if this is your issue (I get a different error from you when I try to run it), but you're missing the brackets around your SCSS property list in the code you posted, so that code shouldn't parse correctly.

0

精彩评论

暂无评论...
验证码 换一张
取 消