https://docs.sencha.com/cmd/guides/a...ce_-_using_ant

I wanted to understand more the build process, following the docs, it says that

sencha app build is equivalent with sencha ant build but, for me the sencha ant build fails on a freshly created universal app.

The only case when it doesn't fail are on a modern app, and it has something todo with having this in the app.json file.
Code:
    "toolkit": "modern",
    "theme": "theme-material",
Any ideas how to make sencha ant build work?


See the code below:

Code:
d:\Sencha\apps\myUniversal>sencha app init -ext=../ext myUniversal --universal
Sencha Cmd v7.0.0.40
[INF] Initializing empty workspace at d:\Sencha\apps\myUniversal
[INF] Copying framework to d:\Sencha\apps\myUniversal\ext
[INF] Added framework ext to workspace.json
[INF] Loading framework from d:\Sencha\apps\myUniversal\ext




d:\Sencha\apps\myUniversal>sencha app init -ext=../ext myUniversal --universal
Sencha Cmd v7.0.0.40
[INF] Using existing workspace at d:\Sencha\apps
[INF] Loading framework from d:\Sencha\apps\ext
[INF] Adding application to workspace.json




d:\Sencha\apps\myUniversal>sencha app build
Sencha Cmd v7.0.0.40
[INF] Processing Build Descriptor : classic (production environment)
[INF] Loading compiler context
[INF] Loading app json manifest...
[INF] Processing data with CmdJavascriptCompressor
[INF] JavaScript input level is NEXT and output level is ES5
[INF] Writing concatenated output to file d:\Sencha\apps\build\production\myUniversal\classic\app.js
[INF] merging 243 input resources into d:\Sencha\apps\build\production\myUniversal\classic\resources
[INF] merged 243 resources into d:\Sencha\apps\build\production\myUniversal\classic\resources
[INF] merging 23 input resources into d:\Sencha\apps\build\production\myUniversal
[INF] merged 21 resources into d:\Sencha\apps\build\production\myUniversal
[INF] Writing content to d:\Sencha\apps\build\temp\production\myUniversal\slicer-temp\bootstrap.json
[INF] Writing content to d:\Sencha\apps\build\temp\production\myUniversal\slicer-temp\bootstrap.js
[INF] writing sass content to d:\Sencha\apps\build\temp\production\myUniversal\slicer-temp\myUniversal-example.scss.tmp
[INF] writing sass content to d:\Sencha\apps\build\temp\production\myUniversal\slicer-temp\config.rb
[LOG] Fashion build starting for d:\Sencha\apps\build\temp\production\myUniversal\slicer-temp\myUniversal-example.scss
[LOG] Fashion build complete for d:\Sencha\apps\build\temp\production\myUniversal\slicer-temp\myUniversal-example.scss
[LOG] Fashion build completed in 1.563 sec.
[INF] Capturing theme image
[INF] Capture complete
[INF] Slicing images...
[INF] Slicing complete - generated 202 images
[INF] Writing content to d:\Sencha\apps\build\temp\production\myUniversal\slicer-temp\bootstrap.json
[INF] Writing content to d:\Sencha\apps\build\temp\production\myUniversal\slicer-temp\bootstrap.js
[INF] writing sass content to d:\Sencha\apps\build\temp\production\myUniversal\sass\myUniversal-all.scss.tmp
[INF] appending sass content to d:\Sencha\apps\build\temp\production\myUniversal\sass\myUniversal-all.scss.tmp
[INF] appending sass content to d:\Sencha\apps\build\temp\production\myUniversal\sass\myUniversal-all.scss.tmp
[INF] writing sass content to d:\Sencha\apps\build\temp\production\myUniversal\sass\config.rb
[INF] Writing content to d:\Sencha\apps\build\production\myUniversal\classic.json
[LOG] Fashion build starting for d:\Sencha\apps\build\temp\production\myUniversal\sass\myUniversal-all.scss
[LOG] Fashion build complete for d:\Sencha\apps\build\temp\production\myUniversal\sass\myUniversal-all.scss
[LOG] Fashion build completed in 1.313 sec.
[INF] Copying page resources to d:\Sencha\apps\build\production\myUniversal
[INF] Applying version stamps to json resource entries
[INF] Generating file deltas to d:\Sencha\apps\build\production\myUniversal\classic\deltas
[INF] Writing content to d:\Sencha\apps\build\production\myUniversal\classic.json
[INF] Writing content to d:\Sencha\apps\build\production\myUniversal\microloader.js
[INF] Appending content to d:\Sencha\apps\build\production\myUniversal\microloader.js
[INF] JavaScript input level is NEXT and output level is ES5
[INF] Building output markup to d:\Sencha\apps/build/production/myUniversal/index.html
[INF] Writing content to d:\Sencha\apps\build\production\myUniversal\index.html
[INF] generating cache manifest to d:\Sencha\apps/build/production/myUniversal/cache.appcache
[INF]
[INF] ======================================================================
[INF]
[INF] Processing Build Descriptor : modern (production environment)
[INF] Loading compiler context
[INF] Loading app json manifest...
[INF] Processing data with CmdJavascriptCompressor
[INF] JavaScript input level is NEXT and output level is ES5
[INF] Writing concatenated output to file d:\Sencha\apps\build\production\myUniversal\modern\app.js
[INF] merging 381 input resources into d:\Sencha\apps\build\production\myUniversal\modern\resources
[INF] merged 381 resources into d:\Sencha\apps\build\production\myUniversal\modern\resources
[INF] merging 12 input resources into d:\Sencha\apps\build\production\myUniversal
[INF] merged 0 resources into d:\Sencha\apps\build\production\myUniversal
[INF] Writing content to d:\Sencha\apps\build\temp\production\myUniversal\slicer-temp\bootstrap.json
[INF] Writing content to d:\Sencha\apps\build\temp\production\myUniversal\slicer-temp\bootstrap.js
[INF] writing sass content to d:\Sencha\apps\build\temp\production\myUniversal\sass\myUniversal-all.scss.tmp
[INF] appending sass content to d:\Sencha\apps\build\temp\production\myUniversal\sass\myUniversal-all.scss.tmp
[INF] appending sass content to d:\Sencha\apps\build\temp\production\myUniversal\sass\myUniversal-all.scss.tmp
[INF] Writing content to d:\Sencha\apps\build\production\myUniversal\modern.json
[LOG] Fashion build starting for d:\Sencha\apps\build\temp\production\myUniversal\sass\myUniversal-all.scss
[LOG] Fashion build complete for d:\Sencha\apps\build\temp\production\myUniversal\sass\myUniversal-all.scss
[LOG] Fashion build completed in 1.259 sec.
[WRN] C1005: Closure Compiler Warning (Unnecessary escape: '\s' is equivalent to just 's') -- unknown-uri:4791:102
[INF] Copying page resources to d:\Sencha\apps\build\production\myUniversal
[INF] Applying version stamps to json resource entries
[INF] Generating file deltas to d:\Sencha\apps\build\production\myUniversal\modern\deltas
[INF] Writing content to d:\Sencha\apps\build\production\myUniversal\modern.json
[INF] Writing content to d:\Sencha\apps\build\production\myUniversal\microloader.js
[INF] Appending content to d:\Sencha\apps\build\production\myUniversal\microloader.js
[INF] JavaScript input level is NEXT and output level is ES5
[INF] Building output markup to d:\Sencha\apps/build/production/myUniversal/index.html
[INF] Writing content to d:\Sencha\apps\build\production\myUniversal\index.html
[INF] generating cache manifest to d:\Sencha\apps/build/production/myUniversal/cache.appcache




d:\Sencha\apps\myUniversal>sencha ant build
Sencha Cmd v7.0.0.40
[INF] Loading compiler context
[INF] Loading app json manifest...
[ERR] Failed to resolve dependency Ext.app.Application for file myUniversal.app.$Application
[ERR]
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.ExNotFound: Unknown definition for dependency : Ext.app.Application
[ERR]
[ERR] Total time: 1 second


[ERR] C:\devkit\Sencha\Cmd\7.0.0.40\ant\build\app\build-impl.xml:409: The following error occurred while executing this line:
C:\devkit\Sencha\Cmd\7.0.0.40\ant\build\app\init-impl.xml:436: com.sencha.exceptions.ExNotFound: Unknown definition for dependency : Ext.app.Application
[ERR] A log is available in the file "D:\Sencha\apps\myUniversal\sencha-error-20190915.log"