起步软件技术论坛
搜索
 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2007|回复: 0

[未处理] 打包错误:Error: Block-scoped declarations (let, const, function, class) n...

[复制链接]

1014

主题

4371

帖子

1万

积分

论坛元老

Rank: 8Rank: 8

积分
10979
QQ
发表于 2019-11-20 17:15:04 | 显示全部楼层 |阅读模式
打包错误:Error: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
  1. You have been opted out of telemetry. To change this, run: cordova telemetry on.
  2.       args.nofetch undefined
  3.       Installing "cordova-plugin-add-swift-support" for android
  4.       Installing "cordova-plugin-add-swift-support" for ios
  5.       Adding cordova-plugin-add-swift-support to package.json
  6.       Saved plugin info for "cordova-plugin-add-swift-support" to config.xml
  7.       Installing "cordova-plugin-qrscanner" for android
  8.       Subproject Path: CordovaLib
  9.       Subproject Path: JustepGetContent
  10.       Installing "cordova-plugin-qrscanner" for ios
  11.       Plugin dependency "cordova-plugin-add-swift-support@2.0.2" already fetched, using that version.
  12.       Dependent plugin "cordova-plugin-add-swift-support" already installed on ios.
  13.       
  14.       Adding cordova-plugin-qrscanner to package.json
  15.       Saved plugin info for "cordova-plugin-qrscanner" to config.xml
  16.       Installing "cordova-plugin-app-version" for android
  17.       Installing "cordova-plugin-app-version" for ios
  18.       Adding cordova-plugin-app-version to package.json
  19.       Saved plugin info for "cordova-plugin-app-version" to config.xml
  20.       Installing "cordova-plugin-device" for android
  21.       Installing "cordova-plugin-device" for ios
  22.       Adding cordova-plugin-device to package.json
  23.       Saved plugin info for "cordova-plugin-device" to config.xml
  24.       Installing "cordova-plugin-splashscreen" for android
  25.       Installing "cordova-plugin-splashscreen" for ios
  26.       Adding cordova-plugin-splashscreen to package.json
  27.       Saved plugin info for "cordova-plugin-splashscreen" to config.xml
  28.       Installing "cordova-plugin-app-preferences" for android
  29.       Installing "cordova-plugin-app-preferences" for ios
  30.       Adding cordova-plugin-app-preferences to package.json
  31.       Saved plugin info for "cordova-plugin-app-preferences" to config.xml
  32.       Installing "cordova-plugin-file" for android
  33.       
  34.       The Android Persistent storage location now defaults to "Internal". Please check this plugin's README to see if your application needs any changes in its config.xml.
  35.       
  36.       If this is a new application no changes are required.
  37.       
  38.       If this is an update to an existing application that did not specify an "AndroidPersistentFileLocation" you may need to add:
  39.       
  40.             "<preference name="AndroidPersistentFileLocation" value="Compatibility" />"
  41.       
  42.       to config.xml in order for the application to find previously stored files.
  43.               
  44.       Installing "cordova-plugin-file" for ios
  45.       Adding cordova-plugin-file to package.json
  46.       Saved plugin info for "cordova-plugin-file" to config.xml
  47.       Installing "cordova-plugin-file-transfer" for android
  48.       Plugin dependency "cordova-plugin-file@5.0.1-dev" already fetched, using that version.
  49.       Dependent plugin "cordova-plugin-file" already installed on android.
  50.       Installing "cordova-plugin-file-transfer" for ios
  51.       Plugin dependency "cordova-plugin-file@5.0.1-dev" already fetched, using that version.
  52.       Dependent plugin "cordova-plugin-file" already installed on ios.
  53.       Adding cordova-plugin-file-transfer to package.json
  54.       Saved plugin info for "cordova-plugin-file-transfer" to config.xml
  55.       Installing "cordova-plugin-network-information" for android
  56.       Installing "cordova-plugin-network-information" for ios
  57.       Adding cordova-plugin-network-information to package.json
  58.       Saved plugin info for "cordova-plugin-network-information" to config.xml
  59.       Installing "cordova-plugin-zip" for android
  60.       Plugin dependency "cordova-plugin-file@5.0.1-dev" already fetched, using that version.
  61.       Dependent plugin "cordova-plugin-file" already installed on android.
  62.       Installing "cordova-plugin-zip" for ios
  63.       Plugin dependency "cordova-plugin-file@5.0.1-dev" already fetched, using that version.
  64.       Dependent plugin "cordova-plugin-file" already installed on ios.
  65.       Adding cordova-plugin-zip to package.json
  66.       Saved plugin info for "cordova-plugin-zip" to config.xml
  67.       Installing "cordova-plugin-inappbrowser" for android
  68.       Installing "cordova-plugin-inappbrowser" for ios
  69.       Adding cordova-plugin-inappbrowser to package.json
  70.       Saved plugin info for "cordova-plugin-inappbrowser" to config.xml
  71.       Installing "cordova-plugin-x-toast" for android
  72.       Installing "cordova-plugin-x-toast" for ios
  73.       Adding cordova-plugin-x-toast to package.json
  74.       Saved plugin info for "cordova-plugin-x-toast" to config.xml
  75.       Installing "com.justep.cordova.plugin.app.utils" for android
  76.       Plugin dependency "cordova-plugin-file@5.0.1-dev" already fetched, using that version.
  77.       Dependent plugin "cordova-plugin-file" already installed on android.
  78.       Plugin dependency "cordova-plugin-file-transfer@1.5.0" already fetched, using that version.
  79.       Dependent plugin "cordova-plugin-file-transfer" already installed on android.
  80.       Plugin dependency "cordova-plugin-network-information@1.2.0" already fetched, using that version.
  81.       Dependent plugin "cordova-plugin-network-information" already installed on android.
  82.       Plugin dependency "cordova-plugin-zip@3.0.0" already fetched, using that version.
  83.       Dependent plugin "cordova-plugin-zip" already installed on android.
  84.       Plugin dependency "cordova-plugin-inappbrowser@1.1.1" already fetched, using that version.
  85.       Dependent plugin "cordova-plugin-inappbrowser" already installed on android.
  86.       Plugin dependency "cordova-plugin-x-toast@2.4.0" already fetched, using that version.
  87.       Dependent plugin "cordova-plugin-x-toast" already installed on android.
  88.       Installing "com.justep.cordova.plugin.app.utils" for ios
  89.       Plugin dependency "cordova-plugin-file@5.0.1-dev" already fetched, using that version.
  90.       Dependent plugin "cordova-plugin-file" already installed on ios.
  91.       Plugin dependency "cordova-plugin-file-transfer@1.5.0" already fetched, using that version.
  92.       Dependent plugin "cordova-plugin-file-transfer" already installed on ios.
  93.       Plugin dependency "cordova-plugin-network-information@1.2.0" already fetched, using that version.
  94.       Dependent plugin "cordova-plugin-network-information" already installed on ios.
  95.       Plugin dependency "cordova-plugin-zip@3.0.0" already fetched, using that version.
  96.       Dependent plugin "cordova-plugin-zip" already installed on ios.
  97.       Plugin dependency "cordova-plugin-inappbrowser@1.1.1" already fetched, using that version.
  98.       Dependent plugin "cordova-plugin-inappbrowser" already installed on ios.
  99.       Plugin dependency "cordova-plugin-x-toast@2.4.0" already fetched, using that version.
  100.       Dependent plugin "cordova-plugin-x-toast" already installed on ios.
  101.       Adding com.justep.cordova.plugin.app.utils to package.json
  102.       Saved plugin info for "com.justep.cordova.plugin.app.utils" to config.xml
  103.       Installing "com.justep.cordova.plugin.engine.tencent" for android
  104.       Installing "com.justep.cordova.plugin.engine.tencent" for ios
  105.       Adding com.justep.cordova.plugin.engine.tencent to package.json
  106.       Saved plugin info for "com.justep.cordova.plugin.engine.tencent" to config.xml
  107.       Error: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
  108.    ****ERROR****: 子任务 "AddPlugins" 执行失败。
  109.    ****ERROR****: 任务 "addPlugins" 执行失败。
  110.    ****ERROR****: 执行出错:
  111.    ****ERROR****: 错误信息: AddPlugins returned: 1
  112.    ****ERROR****: 如不能确定具体问题,可参考常见问题: http://bbs.wex5.com/thread-82002-1-1.html
  113.    /var/folders/8_/_d6rp6kx5zg4skbfd11psnl80000gn/T/dc3bc087-87cc-4b20-a595-c81e0dea0a62/genSource.xml:167: AddPlugins returned: 1
  114.            at com.justep.tools.ant.task.app.AddPluginsTask.a(Unknown Source)
  115.            at com.justep.tools.ant.task.app.AddPluginsTask.execute(Unknown Source)
  116.            at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
  117.            at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
  118.            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  119.            at java.lang.reflect.Method.invoke(Method.java:497)
  120.            at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
  121.            at org.apache.tools.ant.Task.perform(Task.java:348)
  122.            at org.apache.tools.ant.Target.execute(Target.java:435)
  123.            at org.apache.tools.ant.Target.performTasks(Target.java:456)
  124.            at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
  125.            at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
  126.            at com.justep.deploy.app.utils.BuildHelper.execTask(Unknown Source)
  127.            at com.justep.deploy.app.utils.Builder.main(Unknown Source)
  128. ****ERROR****: 子任务 "java" 执行失败。
  129. ****ERROR****: 任务 "prepareSource" 执行失败。
  130. ****ERROR****: 执行出错:
  131. ****ERROR****: 错误信息: Java returned: 253
  132. ****ERROR****: 如不能确定具体问题,可参考常见问题: http://bbs.wex5.com/thread-82002-1-1.html
复制代码



孤舟蓑笠翁,独钓寒江雪。
X5牛刀交流民间第一群:30057529
提供有偿服务,联系WX:18332024
bex5疑难问题解决方案
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|X3技术论坛|Justep Inc.    

GMT+8, 2024-11-22 13:59 , Processed in 0.057193 second(s), 23 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表