1.2.0构建微信小游戏没有libs文件

2020/11/19 10:03-debug:“Start build task, options:”{“buildPath”:"./build",“compressTexture”:true,“debug”:false,“experimentalEraseModules”:false,“gfx”:false,“md5Cache”:false,“mergeStartScene”:false,“name”:“3d_demo-001”,“outputName”:“wechatgame”,“packAutoAtlas”:true,“packages”:{“wechatgame”:{“appid”:“wx6ac3f5090a6b99c5”,“buildSubPackage”:true,“orientation”:“portrait”,“separateEngine”:false}},“platform”:“wechatgame”,“replaceSplashScreen”:false,“scenes”:[{“url”:“db://assets/test.scene”,“uuid”:“aed71c64-5320-481a-ab7b-b7101c507c92”}],“sourceMaps”:false,“startScene”:“aed71c64-5320-481a-ab7b-b7101c507c92”}
2020/11/19 10:03-debug:“Query all assets info in project…”
2020/11/19 10:03-debug:“BuildAssetLibrary initialized with asset 212!”
2020/11/19 10:03-debug:" Number of all scenes: 1"
2020/11/19 10:03-debug:" Number of all scripts: 0"
2020/11/19 10:03-debug:" Number of other assets: 211"
2020/11/19 10:03-debug:"// ---- wechatgame:(onAfterInit) ----"
2020/11/19 10:03-debug:"// ---- wechatgame:(onAfterInit) success ----"
2020/11/19 10:03-log:"// ---- 加载刷新项目脚本 ----"
2020/11/19 10:03-debug:“reload all scripts.”
2020/11/19 10:03-log:"// ---- 查询使用的资源以及资源包配置 ----"
2020/11/19 10:03-debug:“Number of scenes: 1”
2020/11/19 10:03-debug:“Number of assets: 4”
2020/11/19 10:03-debug:“Number of asset group: 0”
2020/11/19 10:03-log:"// ---- 整理脚本分组与脚本数据 ----"
2020/11/19 10:03-debug:“sort script group…”
2020/11/19 10:03-log:"// ---- 整理纹理压缩任务 ----"
2020/11/19 10:03-debug:“Number of image-compress task: 0”
2020/11/19 10:03-log:"// ---- 初步划分 json 合并分组 ----"
2020/11/19 10:03-debug:“Number of json group: 1”
2020/11/19 10:03-log:"// ---- 整理合并压缩 Texture2D 的 json 数据 ----"
2020/11/19 10:03-debug:“Sort asset group of cc.Texture2D: 0”
2020/11/19 10:03-log:"// ---- 打包脚本 ----"
2020/11/19 10:03-debug:“Script package(null) has script:0/0(Project/Plugin)”
2020/11/19 10:03-debug:“Build project success!”
2020/11/19 10:03-debug:“Copy externalScripts success!”
2020/11/19 10:03-warn:“Browserslist: caniuse-lite is outdated. Please run:\nnpx browserslist@latest --update-db”
2020/11/19 10:03-warn:“If you do not supply “output.name”, you may not be able to access the exports of an IIFE bundle.”
2020/11/19 10:04-log:"// ---- 构建自动图集 ----"
2020/11/19 10:04-log:"// ---- 图片拷贝压缩任务 ----"
2020/11/19 10:04-log:"// ---- 将资源拷贝到指定位置 ----"
2020/11/19 10:04-log:"// ---- 将分组后的 json 与散文件构建到指定位置 ----"
2020/11/19 10:04-debug:“Json group(0) compile success,json number: 4”
2020/11/19 10:04-log:"// ---- 构建引擎 ----"
2020/11/19 10:04-debug:“Source d:\Program Files (x86)\CocosDashboard\resources\.editors\Creator3D\1.2.0\resources\resources\3d\engine\exports\audio.ts in watch files record c:\Users\ADMINI~1\AppData\Local\Temp\CocosCreator3D\1.2.0\builder\engine\9b402bbba2b3bcd5c22d1361cff0a9c1.watch-files.json has a different time stamp - rebuild is needed.”
2020/11/19 10:04-debug:{“incremental”:“c:\Users\ADMINI~1\AppData\Local\Temp\CocosCreator3D\1.2.0\builder\engine\9b402bbba2b3bcd5c22d1361cff0a9c1.watch-files.json”,“engine”:“d:\Program Files (x86)\CocosDashboard\resources\.editors\Creator3D\1.2.0\resources\resources\3d\engine”,“out”:“c:\Users\ADMINI~1\AppData\Local\Temp\CocosCreator3D\1.2.0\builder\engine\9b402bbba2b3bcd5c22d1361cff0a9c1”,“platform”:1,“mode”:3,“moduleFormat”:2,“compress”:true,“split”:false,“flags”:{“debug”:false}}
2020/11/19 10:04-debug:“Build-engine options: {\n “incremental”: “c:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\CocosCreator3D\\1.2.0\\builder\\engine\\9b402bbba2b3bcd5c22d1361cff0a9c1.watch-files.json”,\n “engine”: “d:\\Program Files (x86)\\CocosDashboard\\resources\\.editors\\Creator3D\\1.2.0\\resources\\resources\\3d\\engine”,\n “out”: “c:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\CocosCreator3D\\1.2.0\\builder\\engine\\9b402bbba2b3bcd5c22d1361cff0a9c1”,\n “platform”: 1,\n “mode”: 3,\n “moduleFormat”: 2,\n “compress”: true,\n “split”: false,\n “flags”: {\n “debug”: false\n },\n “moduleEntries”: [\n “base”,\n “gfx-webgl”,\n “ui”,\n “particle”,\n “physics-cannon”,\n “physics-framework”,\n “audio”,\n “tween”,\n “terrain”\n ]\n}”
2020/11/19 10:04-debug:“Module source “internal-constants”:\nexport const EDITOR = false;\nexport const PREVIEW = false;\nexport const BUILD = true;\nexport const TEST = false;\nexport const HTML5 = false;\nexport const WECHAT = true;\nexport const ALIPAY = false;\nexport const BAIDU = false;\nexport const XIAOMI = false;\nexport const BYTEDANCE = false;\nexport const OPPO = false;\nexport const VIVO = false;\nexport const HUAWEI = false;\nexport const NATIVE = false;\nexport const COCOSPLAY = false;\nexport const DEBUG = false;\nexport const RUNTIME_BASED = false;\nexport const MINIGAME = true;\nexport const DEV = false;\nexport const JSB = false;\nexport const SUPPORT_JIT = false;”
2020/11/19 10:04-debug:“Module source “cc”:\nexport * from ‘d:\\Program Files (x86)\\CocosDashboard\\resources\\.editors\\Creator3D\\1.2.0\\resources\\resources\\3d\\engine\\exports\\audio.ts’;\nexport * from ‘d:\\Program Files (x86)\\CocosDashboard\\resources\\.editors\\Creator3D\\1.2.0\\resources\\resources\\3d\\engine\\exports\\base.ts’;\nexport * from ‘d:\\Program Files (x86)\\CocosDashboard\\resources\\.editors\\Creator3D\\1.2.0\\resources\\resources\\3d\\engine\\exports\\gfx-webgl.ts’;\nexport * from ‘d:\\Program Files (x86)\\CocosDashboard\\resources\\.editors\\Creator3D\\1.2.0\\resources\\resources\\3d\\engine\\exports\\particle.ts’;\nexport * from ‘d:\\Program Files (x86)\\CocosDashboard\\resources\\.editors\\Creator3D\\1.2.0\\resources\\resources\\3d\\engine\\exports\\physics-cannon.ts’;\nexport * from ‘d:\\Program Files (x86)\\CocosDashboard\\resources\\.editors\\Creator3D\\1.2.0\\resources\\resources\\3d\\engine\\exports\\physics-framework.ts’;\nexport * from ‘d:\\Program Files (x86)\\CocosDashboard\\resources\\.editors\\Creator3D\\1.2.0\\resources\\resources\\3d\\engine\\exports\\terrain.ts’;\nexport * from ‘d:\\Program Files (x86)\\CocosDashboard\\resources\\.editors\\Creator3D\\1.2.0\\resources\\resources\\3d\\engine\\exports\\tween.ts’;\nexport * from ‘d:\\Program Files (x86)\\CocosDashboard\\resources\\.editors\\Creator3D\\1.2.0\\resources\\resources\\3d\\engine\\exports\\ui.ts’;”
2020/11/19 10:04-warn:“Browserslist: caniuse-lite is outdated. Please run the following command: npx browserslist --update-db"
2020/11/19 10:04-log:”// ---- 给所有的资源加上 md5 后缀 ----"
2020/11/19 10:04-log:"// ---- build_import_map ----"
2020/11/19 10:04-debug:“tasks.settings.macro is not defined in 1i8n”
2020/11/19 10:04-log:"// ---- tasks.settings.macro ----"
2020/11/19 10:04-log:"// ---- 使用缓存 settings ----"
2020/11/19 10:04-log:"// ---- custom joint texture layouts ----"
2020/11/19 10:04-log:"// ---- custom joint physics ----"
2020/11/19 10:04-log:"// ---- 填充脚本数据到 settings ----"
2020/11/19 10:04-log:"// ---- 填充场景数据到 settings ----"
2020/11/19 10:04-log:"// ---- 整理 assets 分组,生成 packedAssets 以及 rawAssets 数据 ----"
2020/11/19 10:04-log:"// ---- 从 suffixMap 生成 md5AssetsMap 到 settings ----"
2020/11/19 10:04-debug:“options.md5Cache is false.”
2020/11/19 10:04-debug:"// ---- wechatgame:(onBeforeCompressSettings) ----"
2020/11/19 10:04-debug:"// ---- wechatgame:(onBeforeCompressSettings) success ----"
2020/11/19 10:04-log:"// ---- 整理静态模板文件 ----"
2020/11/19 10:04-debug:"// ---- wechatgame:(onAfterBuild) ----"
2020/11/19 10:04-debug:"// ---- wechatgame:(onAfterBuild) success ----"

构建也没有任何报错

libs.zip (70.9 KB)

非常抱歉,这个问题由于这边不能复现目前尚不清楚原因,在最新版已经添加了更多的 log 打印以及逻辑校验。目前还麻烦先使用构建模板的方式来简单绕过,在项目目录下添加 build-templates/wechatgame/ ,放置 libs 文件夹进去即可。

该主题在最后一个回复创建后7天后自动关闭。不再允许新的回复。