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. version: 2.0.0 author: Hermes Agent tags: [cocos-creator, cli, build, debug, error] triggers: - cocos build - build error - compile fail - build fail
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.