extjsbuilddependenciessencha-cmd

Unknown definition for dependency using build option on Sencha CMD


I have created an application with Cmd using ExtJS GPL 6.2

Then I created a new view using the command:

sencha generate view -base Ext.window.Window login.Login

The problem is that if I run a "sencha app build" command then I have the following error:

[ERR] Failed to resolve dependency Ext.window.Window for file TestSte2.view.login.Login
[ERR]
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.ExNotFound: Unknown definition for dependency : Ext.window.Window
[ERR]
[ERR] Total time: 3 seconds

[ERR] C:\programs\Sencha\Cmd\6.5.2.15\plugin.xml:333: The following error occurred while executing this line:
C:\programs\workspaces\TestSte2\.sencha\app\build-impl.xml:386: The following error occurred while executing this line:
C:\programs\workspaces\TestSte2\.sencha\app\init-impl.xml:436: com.sencha.exceptions.ExNotFound: Unknown definition for dependency : Ext.window.Window
[ERR] A log is available in the file "C:\programs\workspaces\TestSte2\sencha-error-20180109.log"

Can you help me to understand the cause?

Thanks Stefano


Solution

  • I was building the application with both classic and modern toolkit and the error was related to modern toolkit. So now I compile only with classic toolkit and it works (I don't need modern toolkit application in this case)