cocos-engine icon indicating copy to clipboard operation
cocos-engine copied to clipboard

3.8.6 微信小游戏 undefined is not an object (evaluating \'i.originUrl\')

Open Lanlanxiao opened this issue 2 months ago • 2 comments

Cocos Creator version

3.8.6

System information

微信小游戏

Issue description

微信小游戏 游戏700关。每个关卡是一个独立的bundle, 每个关卡图片打包图集。直接导出微信小游戏时, 卡在图集打包, 或者ide直接崩溃。猜测是图片过多。于是将关卡数按300一个项目单独导出。最后将3个导出的项目合并。之后更新关卡导出只更新600之后的。前600关不更新。

Image Image Image Image

然后新版本后台出现多条下面的报错。这个要怎么解决呢

Relevant error log output

undefined is not an object (evaluating 'i.originUrl') n@https://usr/game.js:75:11703 @https://lib/WAGameSubContext.js:1:123943 @https://lib/WAGameSubContext.js:1:199484

Cannot read properties of undefined (reading 'originUrl') TypeError: Cannot read properties of undefined (reading 'originUrl') at Function.n (https://usr/game.js:75:11704) at https://lib/WAGameSubContext.js:1:134233 at Function. (https://lib/WAGameSubContext.js:1:123938) at https://lib/WAGameSubContext.js:1:199479

Lanlanxiao avatar Oct 21 '25 02:10 Lanlanxiao

merge_builds1.sh

merge_settings.sh

2个合并脚本

Lanlanxiao avatar Oct 21 '25 02:10 Lanlanxiao

Image 项目结构. a b 项目关卡1-600 c项目601-最新。3个项目单独导出后, 在c项目下调用 merge_build.sh 即可生成 wechatgame_merged 最终小游戏工程

Lanlanxiao avatar Oct 21 '25 02:10 Lanlanxiao