-1

我有一个工作测试版本,我通过键入以下内容生成: sencha app build testing

它工作正常,现在我很想在生产阶段测试煎茶速度。但我无法进行构建,我尝试sencha app build了但我得到了一个通用错误,所以我尝试获取更多调试信息sencha -d app build

但是我不理解日志文件,找不到丢失的插件或类似的东西。

有人可以看看吗? https://raw.githubusercontent.com/Masegi/tmp/main/error1.log

我用“myapp1”替换我的应用程序名称,希望没关系。

这是我得到的一般错误:

[ERR] Caused by: java.lang.StackOverflowError
[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 Runtime Environment (build 1.8.0_271-b09) Java HotSpot(TM) 64-Bit Server VM (build 25.271-b09, mixed mode)

我的 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

所以它与图表有关,但它们正在测试/开发构建中工作。

4

2 回答 2

0

社区版不附带图表。如果您仍然想使用,您需要高级插件,您可以从支持门户下载并复制图表包到您的包列表中。

完成后,您需要将其包含在应用程序要求的 app.json 文件中:['chart']

然后,您需要将您正在使用的图表类放入应用程序的需要配置中。

于 2021-01-28T16:08:28.867 回答
-1

购买许可证后,更新到 7.3 并开票后,我得到了解决方案:

添加 "optimize" : false 到 app.json 中的 production/js 并且构建工作正常。


    "production": {
        "output": {
            "js" : {
                "optimize" : false
            },
          "appCache": {
            "enable": true,
            "path": "cache.appcache"
          }
        },
        "loader": {
          "cache": "${build.timestamp}"
        },
        "cache": {
          "enable": true
        },
        "compressor": {
          "type": "yui"
        }
      },
于 2021-02-04T20:12:13.483 回答