sencha-touch - 主题 Sencha 触摸错误 : File to import not found or unreadable: sencha-tou ch/default/all

标签 sencha-touch

我只是找不到解决方法,请帮助

我的 config.rb 位于 $PROJECT_HOME/assets/www/theming 位置

 dir = File.dirname('..Path_to_project_home..\assets\www\theming\config.rb')


load File.join(dir, '..', 'lib', 'touch', 'resources', 'themes')


sass_path    = dir
css_path     = dir
environment  = :production
output_style = :compressed

这是我的 app.scss:

@import 'sencha-touch/default/all';

@include sencha-panel;
@include sencha-buttons;
@include sencha-toolbar;
@include sencha-list;
@include sencha-layout;
@include sencha-sheet;
@include sencha-msgbox;

在我运行的“sass_path”目录中的控制台中

compass compile app.scss

但我收到以下错误:

File to import not found or unreadable: sencha-touch/default/all.

请帮忙,解决不了。

最佳答案

您不必在此处复制任何内容, key 在 config.rb 文件中。你会看到这样一行:

load File.join(dir, '..', '..', 'touch', 'resources', 'themes')

这告诉罗盘从哪里加载 sencha touch 的 sass 文件。翻译为:

../../touch/resources/themes

因此,如果您想象使用 cd 将目录移动到 ST 主题目录,这就是您需要修改 File.join 行的内容。例如,如果您的目录结构如下:

/东西 /资源 /萨斯 配置文件 /小贩 /sencha-touch.2.2.1 /资源 /主题

你需要这样一行:

load File.join(dir, '..', '..', '../', 'vendor', 'sencha-touch.2.2.1', 'resources', 'themes')

如果有疑问,只需转到包含您的 config.rb 的目录并完善一个带您到该目录的 cd

关于sencha-touch - 主题 Sencha 触摸错误 : File to import not found or unreadable: sencha-tou ch/default/all,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8254972/

相关文章:

android - 如何在 Sencha Touch 2 中制作签名的 APK

javascript - Sencha Touch 表单在使用 Ext.create 创建时不可用

javascript - 无法使用 sencha 在屏幕底部的面板中显示 2*2 按钮以及屏幕顶部的轮播

extjs - Sencha Touch - 寻找一个好的教程/内容应用程序入门

sencha-touch - 在 Sencha Touch 2 中加载外部 javascript 的正确方法是什么

javascript - Sencha Touch 2.3 的无限列表

javascript - 从 Sencha Touch 中的 javascript 数组动态添加项目

javascript - 指示器在 loadmask sencha touch 中不起作用

javascript - 将 HTML 转换为 Sencha

css - 带有滚动条的 Tab 面板内 Sencha Touch 中的 ListView