我正在尝试构建一个新创建的Ext js应用程序,但出现错误:
$ sencha app watch
[ERR] Failed to resolve dependency Ext.app.Application for file StatsApp.Application
[ERR]
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.ExNotFound: Unknown definition for dependency : Ext.app.Application
[ERR] at org.apache.tools.ant.Target.p
[ERR] erformTasks(Target.java:413)
[ERR]
[ERR] Total time: 1 second
[ERR] /home/cyprien/bin/Sencha/Architect/Cmd/6.6.0.13/plugin.xml:378: The following error occurred while executing this line:
/home/cyprien/projets/statsAppNew/.sencha/app/build-impl.xml:252: The following error occurred while executing this line:
/home/cyprien/projets/statsAppNew/.sencha/app/watch-impl.xml:87: The following error occurred while executing this line:
/home/cyprien/projets/statsAppNew/.sencha/app/build-impl.xml:386: The following error occurred while executing this line:
/home/cyprien/projets/statsAppNew/.sencha/app/init-impl.xml:436: com.sencha.exceptions.ExNotFound: Unknown definition for dependency : Ext.app.Application
我试图将require添加到这样的文件中:
// Application.js
Ext.define('StatsApp.Application', {
extend: 'Ext.app.Application',
requires: [
'Ext.app.Application'
],
Sencha Cmd v6.6.0.13
我在这里建立了一个存储库: statsApp-debug on github
答案 0 :(得分:0)
似乎您忘记为toolkit
中的自定义web
构建配置文件指定app.json
配置。