cocos 3.8.8使用protobuf(通过protoc-gen-ts生成的文件)无法编译问题

cocos: 3.8.8
package.json:{
“name”: “test”,
“uuid”: “700d301c-336a-474b-98f4-6c334715438e”,
“creator”: {
“version”: “3.8.8”
},
“scripts”: {
“proto:gen”: “node generate_ts_from_proto.ts”
},
“dependencies”: {
“google-protobuf”: “^3.21.4”,
“protobufjs”: “^7.5.4”,
“protoc-gen-ts”: “^0.8.7”
},
“devDependencies”: {
“typescript”: “^5.9.3”
}
}

使用const command = protoc -I=${PROTO_BASE_PATH} --ts_out=${PROTO_OUTPUT_PATH} ${PROTO_BASE_PATH}/*.proto 生成协议文件

在启动脚本中:

只要引用net_protos.* ,会出现无法编译脚本


感觉是google-protobuf没有正常引用,但未找到解决方案,请大神解救