CocosCreator3.8.2使用promise依旧会报unhandledRejectedPromise

CocosCreator3.8.2使用promise依旧会报unhandledRejectedPromise

17:27:51 [DEBUG]: EventBus[Engine] has no listener found!

17:27:51 [ERROR]: JS: ReferenceError: Cannot access ‘e’ before initialization

ReferenceError: Cannot access ‘e’ before initialization

at assets/main/index.js:111:1485

at Array. (assets/main/index.js:51:1158)

at Function.gameModelInit (assets/main/index.js:51:1195)

at y._initUIData (assets/main/index.js:111:1457)

at y.start (assets/main/index.js:111:1153)

at eval (eval at Jb (src/cocos-js/cc.js:1:509481), :3:65)

at Kb._invoke (src/cocos-js/cc.js:1:509539)

at Kb.invoke (src/cocos-js/cc.js:1:508744)

at iv.startPhase (src/cocos-js/cc.js:1:511059)

at px.tick (src/cocos-js/cc.js:1:568621)

fopen failed for data file: errno = 2 (No such file or directory)

Errors found! Invalidating cache…

17:27:52 [INFO]: for2d/builtin-sprite|sprite-vs:vert|sprite-fs:frag|CC_USE_EMBEDDED_ALPHA0|USE_TEXTURE1|IS_GRAY0 compile succeed.

fopen failed for data file: errno = 2 (No such file or directory)

Errors found! Invalidating cache…

17:27:52 [ERROR]: [ERROR] file /Applications/Cocos/Creator/3.8.2/CocosCreator.app/Contents/Resources/resources/3d/engine/native/cocos/application/CocosApplication.cpp: line 173

17:27:52 [ERROR]:

Uncaught Exception:

- location :

- msg : unhandledRejectedPromise

- detail :

obj: {}

PromiseConstructor Promisestacktrace:

之前用3.4.x版本时候打包iOS和安卓会报这个错
引擎组说已记录反馈,TMD这都几年过去了CocosCreator3.8.2使用promise依旧会报
这个错 这都几年过去了引擎组到底能不能
干了?
111

难道一个异常promise的{}异常捕获还得整那么多幺蛾子?@panda

我的项目是3.8.2版本没问题,一升级到3.8.3安卓打包后运行就报错:
[ERROR]:
Uncaught Exception:
location :
msg : unhandledRejectedPromise
detail :
obj: {}
PromiseConstructor Promisestacktrace:

你这个问题解决了吗?如果解决了,那是怎么解决的?

我上次也遇到了这个报错 是resolve方法重复执行了
这个问题在H5不会报错
你可以用模拟器跑一下 定位问题

模拟器跑不会报错,就是安卓打包后,安装到手机上运行时报了这个错,并且3.8.2版本安卓打包运行不报这个错,这个错是我升级3.8.3版本后再安卓打包运行开始报的错。。 :rofl:

请问复现步骤是怎么样的?

大佬,请查看我这个帖子: 更新3.8.3版本后安卓打包出问题 - Creator 3.x - Cocos中文社区

能否找出之前反馈的帖子或者 github issue ?我跟进一下之前是怎么处理的。谢谢。

unhandledRejectedPromise 和 rejectAfterPromiseResolved 报错 - Creator 3.x - Cocos中文社区在22年的时候 这个问题就提出来了 有反馈

请问有官方的提问群不?我遇到一个问题,打出的pc包,自己运行exe没有问题,人家运行就闪退