css - 尝试使用 Prepros 和 Gumby 编译 sass 时,如何修复此编译错误?

标签 css web windows-7 sass prepros

我正在使用 Windows 7 编译 .scss 和一个名为 Prepros 的应用程序。 (http://alphapixels.com/prepros/)。我还将 Gumby 框架( http://gumbyframework.com/ )下载到我的本地主机网络服务器的文档根目录中。我的目标是将 gumby 框架与 Prepros 一起使用。

当我尝试编译 scss 文件时,我收到以下错误:

Syntax error: Undefined operation: "power(golden_ratio(), 1) times 16px".
    on line 52 of Z:/Ampps/www/Gumby-master/sass/extensions/modular-scale/stylesheets/_modular-scale.scss
    from line 23 of Z:\Ampps\www\Gumby-master\sass\gumby.scss Use --trace for backtrace.

此外,如果有帮助,这是文件夹 www\Gumby-master 中包含的 config.rb 文件:

# Require any additional compass plugins here.
# Tell compass where to find local extensions
# If you followed directions and ran 'gem install modular-scale' comment the next two     lines out:
extensions_dir = "sass/extensions"
Compass::Frameworks.register('modular-scale', :path => File.expand_path("#  {extensions_dir}/modular-scale"))
# Uncomment these to use regular Ruby gems.
# require 'modular-scale'
# require 'sassy-math'
# Set this to the root of your project when deployed:
http_path = "/"
css_dir = "css"
sass_dir = "sass"
images_dir = "img"
# You can select your preferred output style here (can be overridden via the command   line) :nested or :expanded or :compact or :compressed:
output_style = :compact
# To enable relative paths to assets via compass helper functions. Uncomment:
# relative_assets = true

# To disable debugging comments that display the original location of your selectors.     Uncomment:
line_comments = false


# If you prefer the indented syntax, you might want to regenerate this
# project again passing --syntax sass, or you can uncomment this:
# preferred_syntax = :sass
# and then run:
# sass-convert -R --from scss --to sass sass scss && rm -rf sass && mv scss sass

最后,我回顾了this线程,但我没有发现它有帮助。

最佳答案

解决方案:我尝试了几种方法来修复此问题,但我不确定是哪一种方法负责修复它。

-如所述in this thread ,我打开我的指南针 config.rb 并注释掉 Compass::Frameworks.register('modular-scale', :path => File.expand_path("#{extensions_dir}/modular-scale")),并取消注释 #require 'modular-scale'#require 'sassy-math'

关于css - 尝试使用 Prepros 和 Gumby 编译 sass 时,如何修复此编译错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20461020/

相关文章:

delphi - Delphi-Win7窗口焦点问题

windows - Windows 中的 PrivCopyFileExW 错误?

javascript - 在 bootstrap 4 中隐藏范围输入按钮?

html - Firefox 可以显示 JP2 图像吗?

python - Pywin32发送 key : "Windows button" keypress

performance - Web 应用程序的可扩展性和性能、方法?

jquery - 周围有 div "float"

javascript - 我的警告标签未显示在无效输入上

css - 如何使用 CSS 将绝对 div 水平居中?

html - thymeleaf 正在根据 rest URI 加载静态资源