cocos-creator-cli-build-debug
Use when Cocos Creator 3.x CLI build fails with scene or library errors.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when Cocos Creator 3.x CLI build fails with scene or library errors.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when installing Cocos Creator 3.x and setting up a headless test bootstrap.
Use when setting up a GUI-free CLI build pipeline for Cocos Creator 3.x.
Use when building code-driven scrollable UI panels in Cocos Creator 3.x.
Use when code-driven UI nodes in Cocos Creator 3.x fail to render text or colors.
Use when installing Cocos Creator 3.x and debugging scene import errors.
Use when creating a runtime test without a .scene file in Cocos Creator 3.x.
| name | cocos-creator-cli-build-debug |
| description | Use when Cocos Creator 3.x CLI build fails with scene or library errors. |
Debug Cocos Creator 3.x CLI build failures — scene JSON corruption, library import errors, and resource missing errors.
| Error | Likely Cause | Check |
|---|---|---|
| Error 1222/1223 | Scene JSON corrupt | python3 -c "import json; json.load(open('assets/scenes/MainScene.scene'))" |
resource.ac not found | Asset bundle missing | Check assets/bundle/ exists |
| Module import failed | TS compile error | Run npx tsc --noEmit |
| Library version mismatch | Cocos version conflict | Check package.json @cocos/creator version |
Cannot set property 'w' of undefined (2026-06-16)TypeError: Cannot set property 'w' of undefined at trt (virtual cc-XXX.js:2)FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT in OpenGL framebufferproject.json startScene must match the actual scene UUIDprofiles/v2/packages/builder.json scenes[] list — all listed scenes get builtoverwriteProjectSettings in builder.json can override engine module settings/Applications/Cocos/Creator/3.8.8/CocosCreator.app/Contents/MacOS/CocosCreator --project . --build "platform=wechatgame"
rm -rf library/See references/error-catalog.md for complete error code reference.