mcp启动报错
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 58/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- node.js, typescript
Research direction
Reproduce the crash with Node.js 24.7.0, then inspect src/core/scene/scene-process/service/script.ts around ScriptService.init at line 170 and compare the generated dist file shown in the log. Confirm that the scene process starts without the TypeError and no longer enters the restart loop.
Written by the indexing model from the issue text.
Description
下为log
[Scene] startup worker success, cocos version: 4.0.0
cocos-cli-0.0.1-alpha.24\dist\core\scene\scene-process\service\script.js:186
globalThis.self = window;
^
TypeError: Cannot set property self of #<Object> which has only a getter
at ScriptService.init (E:\cocos-cli\cocos-cli-0.0.1-alpha.24\src\core\scene\scene-process\service\script.ts:170:24)
at processTicksAndRejections (node:internal/process/task_queues:105:5)
Node.js v24.7.0
ERROR 场景进程退出异常 code:1, signal:null
检测到场景进程崩溃,准备重启...
开始重启场景进程 (第 1/3 次)
等待 2000ms 后重启...
- Dominant language
- TypeScript
- Stars
- 450
- Forks
- 158
- Avg merge
- 3d 4h
- Merged PRs (30d)
- 33
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from cocos/cocos-cli
-
Difficulty 2/5 1-3 hours Newbie friendliness 63/100
cocos/cocos-cli#1016 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 57/100
Maintainers usually reply within 1 day
-
cocos-cli 无法通过ts 的编译Open
Difficulty 3/5 1-2 days Newbie friendliness 54/100
cocos/cocos-cli#1017 · 1 comment ·
Maintainers usually reply within 1 day
-
feat: generate Layer-1 MCP tool docs from toolRegistry / Zod schemasPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Maintainers usually reply within 1 day
-
bug P2
Difficulty 3/5 1-2 days Newbie friendliness 48/100
Maintainers usually reply within 1 day
Similar issues
-
BeOS .json missingOpen
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
mihaip/infinite-mac#475 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
marmelab/atomic-crm#401 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Deltares/webgl-streamline-visualizer#83 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day