Ext js 7 cmd 生产构建失败
Ext js 7 cmd Production build failing
我有一个工作测试版本,我通过键入以下内容生成:
sencha app build testing
它工作没有问题,现在我很想在生产阶段测试 sencha 速度。但是我无法进行构建,我尝试了 sencha app build
但出现了一般性错误,因此我尝试使用 sencha -d app build
获取更多调试信息
但是我不明白日志文件,我找不到丢失的插件或类似的东西。
有人可以看看吗?
https://raw.githubusercontent.com/Masegi/tmp/main/error1.log
我将我的应用程序名称替换为“myapp1”,希望没问题。
这是我得到的一般错误:
[ERR] Caused by: java.lang.WhosebugError
[ERR] at com.sencha.tools.compiler.sources.SymbolCache.getDefinedMembers(SymbolCache.java:917)
[ERR] at com.sencha.tools.compiler.sources.SymbolCache.getDefinedMembers(SymbolCache.java:918)
[ERR] at com.sencha.tools.compiler.sources.SymbolCache.getDefinedMembers(SymbolCache.java:918)
[ERR] at com.sencha.tools.compiler.sources.SymbolCache.getDefinedMembers(SymbolCache.java:918)
[ERR] at com.sencha.tools.compiler.sources.SymbolCache.getDefinedMembers(SymbolCache.java:918)
[ERR] at com.sencha.tools.compiler.sources.SymbolCache.getDefinedMembers(SymbolCache.java:918)
[ERR] at com.sencha.tools.compiler.sources.SymbolCache.getDefinedMembers(SymbolCache.java:918)
[ERR] at com.sencha.tools.compiler.sources.SymbolCache.getDefinedMembers(SymbolCache.java:922)
[ERR] at com.sencha.tools.compiler.sources.SymbolCache.getDefinedMembers(SymbolCache.java:918)
[ERR] at com.sencha.tools.compiler.sources.SymbolCache.getDefinedMembers(SymbolCache.java:922)
虽然我的测试版本运行良好:
Sencha Cmd v7.3.0.19
[INF] Processing Build Descriptor : desktop (testing environment)
[INF] Loading compiler context
[INF] Loading app json manifest...
[INF] Processing data with ClosureCompressor
[INF] JavaScript input level is NEXT and output level is ES5
[INF] Writing concatenated output to file /var/www/myapp1/build/testing/myapp1/generatedFiles/desktop/app.js
[INF] merging 863 input resources into /var/www/myapp1/build/testing/myapp1/desktop/resources
[INF] merged 0 resources into /var/www/myapp1/build/testing/myapp1/desktop/resources
[INF] merging 501 input resources into /var/www/myapp1/build/testing/myapp1
[INF] merged 0 resources into /var/www/myapp1/build/testing/myapp1
[INF] Writing content to /var/www/myapp1/build/temp/testing/myapp1/slicer-temp/bootstrap.json
[INF] Writing content to /var/www/myapp1/build/temp/testing/myapp1/slicer-temp/bootstrap.js
[INF] writing sass content to /var/www/myapp1/build/temp/testing/myapp1/sass/myapp1-all.scss.tmp
[INF] appending sass content to /var/www/myapp1/build/temp/testing/myapp1/sass/myapp1-all.scss.tmp
[INF] appending sass content to /var/www/myapp1/build/temp/testing/myapp1/sass/myapp1-all.scss.tmp
[INF] Writing content to /var/www/myapp1/build/testing/myapp1/generatedFiles/desktop.json
[LOG] Fashion build starting for /var/www/myapp1/build/temp/testing/myapp1/sass/myapp1-all.scss
[LOG] Fashion build complete for /var/www/myapp1/build/temp/testing/myapp1/sass/myapp1-all.scss
[LOG] Fashion build completed in 2.673 sec.
[INF] Copying page resources to /var/www/myapp1/build/testing/myapp1
[INF] Writing content to /var/www/myapp1/build/testing/myapp1/generatedFiles/desktop.json
[INF] Writing content to /var/www/myapp1/build/testing/myapp1/microloader.js
[INF] Appending content to /var/www/myapp1/build/testing/myapp1/microloader.js
[INF] Building output markup to /var/www/myapp1/build/testing/myapp1/index.php
[INF] Writing content to /var/www/myapp1/build/testing/myapp1/index.php
[INF]
[INF] ======================================================================
[INF]
[INF] Processing Build Descriptor : phone (testing environment)
[INF] Loading compiler context
[INF] Loading app json manifest...
[INF] Processing data with ClosureCompressor
[INF] JavaScript input level is NEXT and output level is ES5
[INF] Writing concatenated output to file /var/www/myapp1/build/testing/myapp1/generatedFiles/phone/app.js
[INF] merging 863 input resources into /var/www/myapp1/build/testing/myapp1/phone/resources
[INF] merged 0 resources into /var/www/myapp1/build/testing/myapp1/phone/resources
[INF] merging 501 input resources into /var/www/myapp1/build/testing/myapp1
[INF] merged 0 resources into /var/www/myapp1/build/testing/myapp1
[INF] Writing content to /var/www/myapp1/build/temp/testing/myapp1/slicer-temp/bootstrap.json
[INF] Writing content to /var/www/myapp1/build/temp/testing/myapp1/slicer-temp/bootstrap.js
[INF] writing sass content to /var/www/myapp1/build/temp/testing/myapp1/sass/myapp1-all.scss.tmp
[INF] appending sass content to /var/www/myapp1/build/temp/testing/myapp1/sass/myapp1-all.scss.tmp
[INF] appending sass content to /var/www/myapp1/build/temp/testing/myapp1/sass/myapp1-all.scss.tmp
[INF] Writing content to /var/www/myapp1/build/testing/myapp1/generatedFiles/phone.json
[LOG] Fashion build starting for /var/www/myapp1/build/temp/testing/myapp1/sass/myapp1-all.scss
[LOG] Fashion build complete for /var/www/myapp1/build/temp/testing/myapp1/sass/myapp1-all.scss
[LOG] Fashion build completed in 2.587 sec.
[INF] Copying page resources to /var/www/myapp1/build/testing/myapp1
[INF] Writing content to /var/www/myapp1/build/testing/myapp1/generatedFiles/phone.json
[INF] Writing content to /var/www/myapp1/build/testing/myapp1/microloader.js
[INF] Appending content to /var/www/myapp1/build/testing/myapp1/microloader.js
[INF] Building output markup to /var/www/myapp1/build/testing/myapp1/index.php
[INF] Writing content to /var/www/myapp1/build/testing/myapp1/index.php
我的 java 版本是:
Java(TM) SE 运行环境(build 1.8.0_271-b09)
Java HotSpot(TM) 64 位服务器 VM(内部版本 25.271-b09,混合模式)
我的 javac 版本是:
javac 1.8.0_271
编辑 2:
当我输入 sencha ant build
它输出:
[ERR] Failed to resolve dependency Ext.chart.legend.LegendBase for file Ext.chart.legend.Legend
[ERR]
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.ExNotFound: Unknown definition for dependency : Ext.chart.legend.LegendBase
[ERR]
[ERR] Total time: 3 seconds
所以它与图表有关,但它们在 testing/developement 构建中工作。
Charts 不附带社区版。如果您仍想使用,则需要高级插件,您可以从支持门户下载这些插件并将图表包复制到您的包列表中。
完成后,您需要将其包含在应用程序的 app.json 文件中
要求:['chart']
然后您需要将您正在使用的图表 class 放入应用程序的 requires 配置中。
购买许可证后,更新到 7.3 并开票我得到了解决方案:
在 app.json 中将“优化”: false 添加到 production/js 并且构建工作正常。
"production": {
"output": {
"js" : {
"optimize" : false
},
"appCache": {
"enable": true,
"path": "cache.appcache"
}
},
"loader": {
"cache": "${build.timestamp}"
},
"cache": {
"enable": true
},
"compressor": {
"type": "yui"
}
},
我有一个工作测试版本,我通过键入以下内容生成:
sencha app build testing
它工作没有问题,现在我很想在生产阶段测试 sencha 速度。但是我无法进行构建,我尝试了 sencha app build
但出现了一般性错误,因此我尝试使用 sencha -d app build
但是我不明白日志文件,我找不到丢失的插件或类似的东西。
有人可以看看吗? https://raw.githubusercontent.com/Masegi/tmp/main/error1.log
我将我的应用程序名称替换为“myapp1”,希望没问题。
这是我得到的一般错误:
[ERR] Caused by: java.lang.WhosebugError
[ERR] at com.sencha.tools.compiler.sources.SymbolCache.getDefinedMembers(SymbolCache.java:917)
[ERR] at com.sencha.tools.compiler.sources.SymbolCache.getDefinedMembers(SymbolCache.java:918)
[ERR] at com.sencha.tools.compiler.sources.SymbolCache.getDefinedMembers(SymbolCache.java:918)
[ERR] at com.sencha.tools.compiler.sources.SymbolCache.getDefinedMembers(SymbolCache.java:918)
[ERR] at com.sencha.tools.compiler.sources.SymbolCache.getDefinedMembers(SymbolCache.java:918)
[ERR] at com.sencha.tools.compiler.sources.SymbolCache.getDefinedMembers(SymbolCache.java:918)
[ERR] at com.sencha.tools.compiler.sources.SymbolCache.getDefinedMembers(SymbolCache.java:918)
[ERR] at com.sencha.tools.compiler.sources.SymbolCache.getDefinedMembers(SymbolCache.java:922)
[ERR] at com.sencha.tools.compiler.sources.SymbolCache.getDefinedMembers(SymbolCache.java:918)
[ERR] at com.sencha.tools.compiler.sources.SymbolCache.getDefinedMembers(SymbolCache.java:922)
虽然我的测试版本运行良好:
Sencha Cmd v7.3.0.19
[INF] Processing Build Descriptor : desktop (testing environment)
[INF] Loading compiler context
[INF] Loading app json manifest...
[INF] Processing data with ClosureCompressor
[INF] JavaScript input level is NEXT and output level is ES5
[INF] Writing concatenated output to file /var/www/myapp1/build/testing/myapp1/generatedFiles/desktop/app.js
[INF] merging 863 input resources into /var/www/myapp1/build/testing/myapp1/desktop/resources
[INF] merged 0 resources into /var/www/myapp1/build/testing/myapp1/desktop/resources
[INF] merging 501 input resources into /var/www/myapp1/build/testing/myapp1
[INF] merged 0 resources into /var/www/myapp1/build/testing/myapp1
[INF] Writing content to /var/www/myapp1/build/temp/testing/myapp1/slicer-temp/bootstrap.json
[INF] Writing content to /var/www/myapp1/build/temp/testing/myapp1/slicer-temp/bootstrap.js
[INF] writing sass content to /var/www/myapp1/build/temp/testing/myapp1/sass/myapp1-all.scss.tmp
[INF] appending sass content to /var/www/myapp1/build/temp/testing/myapp1/sass/myapp1-all.scss.tmp
[INF] appending sass content to /var/www/myapp1/build/temp/testing/myapp1/sass/myapp1-all.scss.tmp
[INF] Writing content to /var/www/myapp1/build/testing/myapp1/generatedFiles/desktop.json
[LOG] Fashion build starting for /var/www/myapp1/build/temp/testing/myapp1/sass/myapp1-all.scss
[LOG] Fashion build complete for /var/www/myapp1/build/temp/testing/myapp1/sass/myapp1-all.scss
[LOG] Fashion build completed in 2.673 sec.
[INF] Copying page resources to /var/www/myapp1/build/testing/myapp1
[INF] Writing content to /var/www/myapp1/build/testing/myapp1/generatedFiles/desktop.json
[INF] Writing content to /var/www/myapp1/build/testing/myapp1/microloader.js
[INF] Appending content to /var/www/myapp1/build/testing/myapp1/microloader.js
[INF] Building output markup to /var/www/myapp1/build/testing/myapp1/index.php
[INF] Writing content to /var/www/myapp1/build/testing/myapp1/index.php
[INF]
[INF] ======================================================================
[INF]
[INF] Processing Build Descriptor : phone (testing environment)
[INF] Loading compiler context
[INF] Loading app json manifest...
[INF] Processing data with ClosureCompressor
[INF] JavaScript input level is NEXT and output level is ES5
[INF] Writing concatenated output to file /var/www/myapp1/build/testing/myapp1/generatedFiles/phone/app.js
[INF] merging 863 input resources into /var/www/myapp1/build/testing/myapp1/phone/resources
[INF] merged 0 resources into /var/www/myapp1/build/testing/myapp1/phone/resources
[INF] merging 501 input resources into /var/www/myapp1/build/testing/myapp1
[INF] merged 0 resources into /var/www/myapp1/build/testing/myapp1
[INF] Writing content to /var/www/myapp1/build/temp/testing/myapp1/slicer-temp/bootstrap.json
[INF] Writing content to /var/www/myapp1/build/temp/testing/myapp1/slicer-temp/bootstrap.js
[INF] writing sass content to /var/www/myapp1/build/temp/testing/myapp1/sass/myapp1-all.scss.tmp
[INF] appending sass content to /var/www/myapp1/build/temp/testing/myapp1/sass/myapp1-all.scss.tmp
[INF] appending sass content to /var/www/myapp1/build/temp/testing/myapp1/sass/myapp1-all.scss.tmp
[INF] Writing content to /var/www/myapp1/build/testing/myapp1/generatedFiles/phone.json
[LOG] Fashion build starting for /var/www/myapp1/build/temp/testing/myapp1/sass/myapp1-all.scss
[LOG] Fashion build complete for /var/www/myapp1/build/temp/testing/myapp1/sass/myapp1-all.scss
[LOG] Fashion build completed in 2.587 sec.
[INF] Copying page resources to /var/www/myapp1/build/testing/myapp1
[INF] Writing content to /var/www/myapp1/build/testing/myapp1/generatedFiles/phone.json
[INF] Writing content to /var/www/myapp1/build/testing/myapp1/microloader.js
[INF] Appending content to /var/www/myapp1/build/testing/myapp1/microloader.js
[INF] Building output markup to /var/www/myapp1/build/testing/myapp1/index.php
[INF] Writing content to /var/www/myapp1/build/testing/myapp1/index.php
我的 java 版本是: Java(TM) SE 运行环境(build 1.8.0_271-b09) Java HotSpot(TM) 64 位服务器 VM(内部版本 25.271-b09,混合模式)
我的 javac 版本是: javac 1.8.0_271
编辑 2:
当我输入 sencha ant build
它输出:
[ERR] Failed to resolve dependency Ext.chart.legend.LegendBase for file Ext.chart.legend.Legend
[ERR]
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.ExNotFound: Unknown definition for dependency : Ext.chart.legend.LegendBase
[ERR]
[ERR] Total time: 3 seconds
所以它与图表有关,但它们在 testing/developement 构建中工作。
Charts 不附带社区版。如果您仍想使用,则需要高级插件,您可以从支持门户下载这些插件并将图表包复制到您的包列表中。
完成后,您需要将其包含在应用程序的 app.json 文件中 要求:['chart']
然后您需要将您正在使用的图表 class 放入应用程序的 requires 配置中。
购买许可证后,更新到 7.3 并开票我得到了解决方案:
在 app.json 中将“优化”: false 添加到 production/js 并且构建工作正常。
"production": {
"output": {
"js" : {
"optimize" : false
},
"appCache": {
"enable": true,
"path": "cache.appcache"
}
},
"loader": {
"cache": "${build.timestamp}"
},
"cache": {
"enable": true
},
"compressor": {
"type": "yui"
}
},