【问题标题】:Sencha CMD - How build only MODERN app from Admin Dashboard template?Sencha CMD - 如何从 Admin Dashboard 模板仅构建 MODERN 应用程序?
【发布时间】:2020-04-11 23:10:53
【问题描述】:

我想从 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

【问题讨论】:

    标签: extjs cmd


    【解决方案1】:

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

    你的情况是scss有问题

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-07-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-10-28
      • 1970-01-01
      相关资源
      最近更新 更多