Sass::SyntaxError:未定义的混合“背景图像”在 sproutcore sc 服务器中
我从这里开始关注 Sproutcore 入门指南: http://guides.sproutcore.com/getting_started.html< /a>
当我在 Sproutcore 应用程序目录中运行 sc-server 并请求 http://localhost:4020/todos从浏览器中,我收到以下错误:
Sass::SyntaxError: Undefined mixin 'background-image'.
././tmp/chance/c252db965d416a210509d6610c706976.scss:79:in `background-image'
././tmp/chance/c252db965d416a210509d6610c706976.scss:79
chance_main.css:2
...
这是引用的 .scss 文件的部分:
.sc-button {
79--> @include background-image(linear-gradient(#F9F9F9 1%, #DDD, #F2F2F2, #F7F7F7));
border: 1px solid #828282;
color: #000;
float: right;
padding: 0 5px;
I am following the Sproutcore getting started guide from here: http://guides.sproutcore.com/getting_started.html
When I run sc-server inside the Sproutcore application directory and request http://localhost:4020/todos from the browser, I get the following error:
Sass::SyntaxError: Undefined mixin 'background-image'.
././tmp/chance/c252db965d416a210509d6610c706976.scss:79:in `background-image'
././tmp/chance/c252db965d416a210509d6610c706976.scss:79
chance_main.css:2
...
This is the section of the .scss file referred to:
.sc-button {
79--> @include background-image(linear-gradient(#F9F9F9 1%, #DDD, #F2F2F2, #F7F7F7));
border: 1px solid #828282;
color: #000;
float: right;
padding: 0 5px;
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好的,这个问题与任何其他源文件无关,而是由于我的 todo.js(主应用程序 javascript 文件)中的拼写错误造成的。
我用分号 (;) 而不是逗号 (,) 分隔关联数组中的项目。
堆栈跟踪在这方面根本没有多大帮助。
OK, the problem had nothing to do with any of the other source files, but was due to a typo in my todo.js (the main application javascript file).
I had separated items in an associative array with a semicolon (;) instead of a comma (,).
The stack trace simply was not very helpful in this regard.