繁体   English   中英

Sencha CMD - 如何从管理仪表板模板仅构建现代应用程序?

[英]Sencha CMD - How build only MODERN app from Admin Dashboard template?

我想从 Admin Dashboard 模板构建一个移动应用程序(仅用于测试目的)。

首先,我使用以下脚本创建了我的应用程序:

C:\xampp\htdocs\ext>sencha generate app -s templates/admin-dashboard app ../myApp

这很好用! 该应用程序连同其在\htdocs\myApp路径中的树文件夹一起创建。 之后,我对视图进行了一些更改并运行以下脚本:

C:\xampp\htdocs\myApp>sencha app build modern production

但我收到以下错误:

[LOG] Build error for C:\xampp\htdocs\myApp\build\temp\production\Admin\sass\Admin-all.scss
[LOG] Fashion Error : list_item_title__mix is not defined :
[ERR]
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.ExBuild: Fashion build exited with code : 1
[ERR]   at org.apache.tools.ant
[ERR] .TaskAdapter.execute(TaskAdapter.java:154)
[ERR]
[ERR] Total time: 1 minute 11 seconds

[ERR] C:\Users\silve\bin\Sencha\Cmd\7.1.0.15\plugin.xml:333: The following error occurred while executing this line:
C:\Users\silve\bin\Sencha\Cmd\7.1.0.15\ant\build\app\build-impl.xml:292: The following error occurred while executing this line:
C:\Users\silve\bin\Sencha\Cmd\7.1.0.15\ant\build\app\sass-impl.xml:205: The following error occurred while executing this line:
C:\Users\silve\bin\Sencha\Cmd\7.1.0.15\ant\build\app\sass-impl.xml:240: com.sencha.exceptions.ExBuild: Fashion build exited with code : 1
[ERR] A log is available in the file "C:\xampp\htdocs\myApp\sencha-error-20200411.log"

有人可以解释问题出在哪里吗?

如果我删除“现代”规范,一切正常,但是,我不需要经典工具包,因为最终设备将是手机。

我试过没有成功:

  • sencha app build modern production
  • sencha app build -modern -e production

您不需要使用 --modern ( docs )。 它在应用程序生成期间使用一次。

在您的情况下,scss 存在问题

Admin-all.scss
[LOG] Fashion Error : list_item_title__mix is not defined :
[ERR]

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM