0
剛剛升級到煎茶觸摸2.3 - 一切都很好,直到我說我的薩斯混入,並試圖「煎茶應用程序構建」 ......煎茶觸摸2.3 - 薩斯@mixin打破煎茶的應用程序建立
更新/注意事項:「sencha app watch」也會導致相同的錯誤。
(煎茶CMD 4.0.1.45)
我的mixin:
@mixin MQ($canvas) {
@if $canvas == small {
@media only screen and (max-width: 20em) { @content; } //320px
}
@else if $canvas == 'XS' {
@media only screen and (max-width: 30em) { @content; } //480px
}
@else if $canvas == S {
@media only screen and (max-width: 37.5em) { @content; } //600px
}
@else if $canvas == medium {
@media only screen and (max-width: 48em) { @content; } //768px
}
@else if $canvas == larger {
@media only screen and (min-width: 769px) { @content; } //1024px
}
@else if $canvas == XL {
@media only screen and (min-width: 75em) { @content; } //1200px
}
}
用法示例:
#Login{
background: #2f7790;
#spacer{
@include MQ(small) {
margin-top: 42%;
}
}
}
(不,如果我刪除這個問題,它會發現下一個,並拋出相同的錯誤) 然後,當我嘗試運行「sencha應用程序構建」:
[INF] -compass-compile-sass-dir:
[INF] executing compass using system installed ruby runtime
Sass::SyntaxError on line ["14"] of /Users/jakeF/dev/SENCHA/MyApp/resources/sass/partials/_login.scss: Invalid CSS after "...lude MQ(small) ": expected "}", was "{"
/Users/jakeF/dev/SENCHA/MyApp/resources/sass/partials/X__default-theme.scss:6
/Users/jakeF/dev/SENCHA/MyApp/resources/sass/app.scss:8
/Users/jakeF/bin/Sencha/Cmd/4.0.1.45/extensions/sencha-compass/gems/gems/sass-3.1.7/lib/sass/scss/parser.rb:896:in `expected'
/Users/jakeF/bin/Sencha/Cmd/4.0.1.45/extensions/sencha-compass/gems/gems/sass-3.1.7/lib/sass/scss/parser.rb:841:in `expected'
/Users/jakeF/bin/Sencha/Cmd/4.0.1.45/extensions/sencha-compass/gems/gems/sass-3.1.7/lib/sass/scss/parser.rb:836:in `tok!'
/Users/jakeF/bin/Sencha/Cmd/4.0.1.45/extensions/sencha-compass/gems/gems/sass-3.1.7/lib/sass/scss/parser.rb:362:in `block'
/Users/jakeF/bin/Sencha/Cmd/4.0.1.45/extensions/sencha-compass/gems/gems/sass-3.1.7/lib/sass/scss/parser.rb:355:in `ruleset'
/Users/jakeF/bin/Sencha/Cmd/4.0.1.45/extensions/sencha-compass/gems/gems/sass-3.1.7/lib/sass/scss/parser.rb:417:in `block in declaration_or_ruleset'
...
/Users/jakeF/bin/Sencha/Cmd/4.0.1.45/extensions/sencha-compass/gems/bin/compass:23:in `load'
/Users/jakeF/bin/Sencha/Cmd/4.0.1.45/extensions/sencha-compass/gems/bin/compass:23:in `<main>'
error app.scss (Line 14 of partials/_login.scss: Invalid CSS after "...lude MQ(small) ": expected "}", was "{")
[ERR]
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.ExProcess: compass process exited with non-zero code : 1
[ERR]
[ERR] Total time: 21 seconds
[ERR] The following error occurred while executing this line:
/Users/jakeF/dev/SENCHA/MyApp/.sencha/app/build-impl.xml:273: The following error occurred while executing this line:
/Users/jakeF/dev/SENCHA/MyApp/.sencha/app/sass-impl.xml:200: The following error occurred while executing this line:
/Users/jakeF/dev/SENCHA/MyApp/.sencha/app/sass-impl.xml:206: com.sencha.exceptions.ExProcess: compass process exited with non-zero code : 1
我的系統指南針編譯得很好。 Sencha構建過程正在破壞事物。
我的系統ruby-
ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-darwin13.0]