環境:
的Mac OSX小牛10.9.4
羅盤1.0.1(北極星)
羅盤藍圖(1.0.0)
薩斯3.4.5(選擇性史蒂夫)
煎茶應用構建測試命令沒有錯誤煎茶觸摸2.4.0 SASS編譯錯誤
當我編譯app.scss文件中./resources/sass/目錄,錯誤發生。
compass compile app.scss
error app.scss (Line 209 of /Users/icese7en/Sites/Demos/Sencha/Practice/WeatherApp/touch/resources/themes/stylesheets/sencha-touch/base/src/_Class.scss: File not found or cannot be read: /Users/icese7en/Sites/Demos/Sencha/Practice/WeatherApp/resources/sass/fonts/pictos/pictos-web.woff)
File not found or cannot be read: /Users/icese7en/Sites/Demos/Sencha/Practice/WeatherApp/resources/sass/fonts/pictos/pictos-web.woff
然後我觸摸/資源/主題/字體文件夾複製到資源/上海社會科學院/文件夾,然後這個錯誤固定。
但我懷疑爲什麼會在版本2.3.2(sencha touch)中出現這種情況,我用指南針正確編譯。
然後是另一個錯誤:
compass compile app.scss
error app.scss (Line 42 of /Users/icese7en/Sites/Demos/Sencha/Practice/WeatherApp/touch/resources/themes/stylesheets/sencha-touch/base/src/_ProgressIndicator.scss: Undefined mixin 'experimental'.)
Sass::SyntaxError on line ["42"] of /Users/icese7en/Sites/Demos/Sencha/Practice/WeatherApp/touch/resources/themes/stylesheets/sencha-touch/base/src/_ProgressIndicator.scss: Undefined mixin 'experimental'.
Run with --trace to see the full backtrace
現在我不能修復它。
這是app.scss的內容:
// The following two lines import the default Sencha Touch theme. If you are building
// a new theme, remove them and the add your own CSS on top of the base CSS (which
// is already included in your app.json file).
@import 'sencha-touch/default';
@import 'sencha-touch/default/all';
// Custom code goes here..
// Examples of using the icon mixin:
// @include icon('user');
config.rb:
# Get the directory that this configuration file exists in
dir = File.dirname(__FILE__)
# Load the sencha-touch framework automatically.
load File.join(dir, '..', '..', 'touch', 'resources', 'themes')
# Compass configurations
sass_path = dir
css_path = File.join(dir, "..", "css")
# Require any additional compass plugins here.
images_dir = File.join(dir, "..", "images")
output_style = :compressed
environment = :production
你使用煎茶Cmd的?使用Cmd你不需要下載指南針,但是你可以運行'sencha app build'或'sencha ant sass'。 – Saki 2014-10-06 11:29:15
@Saki是的,sencha ant sass它的工作原理。但我不知道指南針現在無法正常工作,當我正確使用sencha時2.3.2 – icese7en 2014-10-06 12:37:11
@Saki無論如何都謝謝你。我看到一個關於這個問題的官方文章,但是當版本是2.3.0時,我已經做了羅盤編譯,現在它不工作。 – icese7en 2014-10-06 13:01:09