Extjs6:运行sencha ant sass命令时出错

时间:2016-07-24 10:06:30

标签: extjs ant sencha-cmd extjs6 extjs6-classic

我是extjs的新手。我通过sencha cmd创建了一个extjs 6.0.2 app。我运行了命令 sencha app build classic 。一切顺利,应用程序创建成功。但是当我运行命令 sencha ant sass 时,我收到了以下错误:控制台

[ERR] Failed to resolve dependency Ext.chart.LegendBase for file  Ext.chart.Legend
[ERR]
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.ExNotFound: Unknown definition for dependency : Ext.chart.LegendBase
[ERR]
[ERR] Total time: 3 seconds
[ERR] The following error occurred while executing this line:
E:\Workspace\Zscore\zscore\.sencha\app\init-impl.xml:382: com.sencha.exceptions.ExNotFound: Unknown definition for dependency : Ext.chart.LegendBase

可能是什么问题?

2 个答案:

答案 0 :(得分:0)

您是否曾尝试在app.json的需要数组中添加图表

答案 1 :(得分:-1)

来自Extjs论坛的

我认为您需要指定要定位的构建配置文件。像这样:sencha ant -Dbuild.id = classic -Dbuild.name = classic sass

论坛链接:https://www.sencha.com/forum/showthread.php?314286-Extjs6-Error-running-sencha-ant-sass-command