-
Notifications
You must be signed in to change notification settings - Fork 9
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
sass compile error with CodeKit #4
Comments
@cucocreative thanks for making use of my starter theme. WIll release an update that am sure will fix the issue you are experiencing in the next 24 HRS. |
okay, brilliant. Thanks for the help – I'll keep an eye out for the update. |
@cucocreative I just pushed an update to the theme. If it doesn't then you have to install modular-scale gem |
Thanks for the update, although I'm still getting the "Syntax error: File to import not found or unreadable: modular-scale" error, even after installing modular-scale 2.0.4 & 1.0.6. The dev of CodeKit told me that he will bundle modular-scale – so I'll have to wait for the next release to see if that will help. |
I'm getting a similar error, but I don't get it when I compile the SASS from the regular Gumby Framework.
|
@indadam you have to install modular-scale gem to fix this error. |
@tubiz I do have it installed, like I said, it works with the regular Gumby Framework, it's just not working with the GumbyPress. I've dug through the SASS and I can't see why it's not linking. |
@indadam so sorry about this will have to troubleshoot this further. |
Hello @tubiz, it's really amazing your job. With me, the same problem. I'm using Scout to compile SASS and show the error bellow: error gumby.scss (Line 20: File to import not found or unreadable: modular-scale. Some news about that? Thank you. |
@samotta93 so sorry for replying late. I will troubleshoot this further and make sure it is fixed once and for all. |
I found a (sort of) solution to this. For me (i'm not an expert) it worked to create a config.rb in the root of you project with this code: extensions_dir = "wp-content/themes/YOURTHEMENAME/sass/extensions"
Compass::Frameworks.register('modular-scale', :path => File.expand_path("#{extensions_dir}/modular-scale"))
http_path = "/"
css_dir = "wp-content/themes/YOURTHEMENAME/css"
sass_dir = "wp-content/themes/YOURTHEMENAME/sass"
images_dir = "wp-content/themes/YOURTHEMENAME/imgs"
javascripts_dir = "wp-content/themes/YOURTHEMENAME/js"
fonts_dir = "wp-content/themes/YOURTHEMENAME/assets/fonts"
output_style = :compressed
environment = :production
color_output = false That worked for me! |
Thank you @dennisSmidswater, I'll give that a shot. |
Thanks @dennisSmidswater, that did the trick.
NB CodeKit was latest version 2.0.6 - which still errored without the above included. |
Hi, thanks for the great WP theme.
I've been coding in css and thought it's about time to look into sass. I use CodeKit to autorefresh my browsers when I save any files I'm working on – it will also compile the scss files when you save them, but it currently errors. It will compile Gumby without issue (now anyway, after a lot of googlefoo), but doesn't like GumbyPress. I'm using your latest version using Gumby2.6.
Have you come across CodeKit? Could you shed any light onto this problem?
The error in the log is:
Syntax error: File to import not found or unreadable: modular-scale.
Load paths:
/Applications/MAMP/htdocs/wordpress/wp-content/themes/12_16_grid/sass
/Applications/CodeKit.app/Contents/Resources/engines/bourbon/bourbon/app/assets/stylesheets
/Applications/CodeKit.app/Contents/Resources/engines/neat
/Applications/MAMP/htdocs/wordpress/wp-content/themes/12_16_grid/bower_components/foundation/scss
on line 21 of /Applications/MAMP/htdocs/wordpress/wp-content/themes/12_16_grid/sass/gumby.scss
Use --trace for backtrace.
Line 21 of gumby.scss is @import "modular-scale";
Thanks for any advice you could give me.
The text was updated successfully, but these errors were encountered: