无法在ExtJS 6.0上解析依赖项Ext.grid.Panel

时间:2017-03-28 16:12:19

标签: extjs sencha-touch extjs6

尝试扩展Sencha官方文档示例中显示的'Ext.grid.Panel'时出现以下错误。我使用了经典的,现代的,通用的框架,但仍然没有用。

Failed to resolve dependency Ext.grid.Panel for file Xmlgrid.view.main.Main
    [ERR] 
    [ERR] BUILD FAILED
    [ERR] com.sencha.exceptions.ExNotFound: Unknown definition for dependency : Ext.grid.Panel
    [ERR]   at o
    [ERR] rg.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
    [ERR] 
    [ERR] Total time: 65 minutes 56 seconds
    [ERR] Error during rebuild : The following error occurred while executing this line:
    C:\Users\nandeesh\workspace\Xmlgrid\.sencha\app\watch-impl.xml:4: The following error occurred while executing this line:
    C:\Users\nandeesh\workspace\Xmlgrid\.sencha\app\build-impl.xml:380: The following error occurred while executing this line:
    C:\Users\nandeesh\workspace\Xmlgrid\.sencha\app\init-impl.xml:403: com.sencha.exceptions.ExNotFound: Unknown definition for dependency : Ext.grid.Panel
    [INF] Refresh complete in 0 sec. at 10:59:30 AM

1 个答案:

答案 0 :(得分:1)

我还必须使用6.5.0 Sencha Cmd版本和6.2.0 Ext JS版本修复此错误 我对@random aspirer的回答肯定有些晚了,但对于那些实际在这里搜索的人来说。它的问题来自你的app.json中定义的工具包配置所以:
- 如果你有这个:

"toolkit" : "modern",

将其替换为

"toolkit" : "classic",

解决方案参考:https://www.sencha.com/forum/showthread.php?303033-Unknown-definition-for-dependency