由于 sass 目标,Sencha 构建 [英] Sencha build due to sass target

查看:88
本文介绍了由于 sass 目标,Sencha 构建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试构建 Sencha 应用程序,但出现以下错误:

<块引用>

[ERR] 执行此行时发生以下错误:/Users/conor/Repositories/POS/pos/.sencha/app/build-impl.xml:286:

执行此行时出现以下错误:/Users/conor/Repositories/POS/pos/.sencha/app/sass-impl.xml:280:

执行此行时出现以下错误:/Users/conor/Repositories/POS/pos/.sencha/app/sass-impl.xml:286:

问题:无法创建任务或键入 x-compass-compile 原因:名称未定义.行动:检查拼写.行动:检查任何已声明自定义任务/类型.行动:检查任何/声明已经发生.

我查看了 Ant 脚本,似乎问题出在使用 Compass 的 SASS 过程中.

我可以确认已安装 Compass v1.0.3.

在那之后,我不是煎茶专家,所以被卡住了.请问我该如何解决这个问题?

谢谢.

解决方案

我也遇到了这个错误.我刚刚升级到 Sencha CMD 6.0.2.14.

  1. 如果您没有安装 ruby​​,请安装 ruby​​2.X.需要 Ruby 来构建 sencha 应用程序并将 'ruby' 设置为您的系统路径变量.例如:使用 ruby -v
  2. 检查您的 ruby​​ 版本

I am trying to build a Sencha app but I am getting the following errors:

[ERR] The following error occurred while executing this line: /Users/conor/Repositories/POS/pos/.sencha/app/build-impl.xml:286:

The following error occurred while executing this line: /Users/conor/Repositories/POS/pos/.sencha/app/sass-impl.xml:280:

The following error occurred while executing this line: /Users/conor/Repositories/POS/pos/.sencha/app/sass-impl.xml:286:

Problem: failed to create task or type x-compass-compile Cause: The name is undefined. Action: Check the spelling. Action: Check that any custom tasks/types have been declared. Action: Check that any / declarations have taken place.

I looked into the Ant scripts and it appears that the issue is around the SASS process using Compass.

I can confirm that Compass v1.0.3 is installed.

After that, I am not a Sencha expert so am stuck. How can I fix this issue please?

Thank you.

解决方案

I ran into this error too. I had just upgraded to Sencha CMD 6.0.2.14. Download page

It looks like you're using Sencha Touch and it's probably 2.x. There's a component called "Compass extension" in the installer that needs to be checked.

  1. If you didn't install the ruby, Install the ruby2.X. Ruby is required to build the sencha application and set 'ruby' to your system path variable. eg: check your ruby version with ruby -v

这篇关于由于 sass 目标,Sencha 构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆