cocos-ts-compile-check-sop
Use when running TypeScript compile check on Cocos Creator 3.x project.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Use when running TypeScript compile check on Cocos Creator 3.x project.
التثبيت باستخدام 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 Cocos Creator 3.x CLI build fails with scene or library errors.
Use when installing Cocos Creator 3.x and debugging scene import errors.
| name | cocos-ts-compile-check-sop |
| description | Use when running TypeScript compile check on Cocos Creator 3.x project. |
Mandatory TypeScript compile check before committing code to a Cocos Creator 3.x project.
npx tsc --noEmit
Must pass with zero errors before any commit.
| Error | Fix |
|---|---|
Cannot find module 'cc' | Add @cocos/creator-types to tsconfig |
Property 'xxx' does not exist | Check Cocos API version compatibility |
Type 'X' is not assignable | Check Cocos 3.x type differences from 2.x |
compilerOptions.target: "ES2015" or highercompilerOptions.module: "commonjs" or "ES2015"compilerOptions.strict: true recommendedcompilerOptions.skipLibCheck: true for faster checksinclude: covers all assets/**/*.tsSee references/tsconfig-template.md for a complete working tsconfig.json.