-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cocos2.2.1无法打开此工程,会报以下错误 #1
Comments
没安装依赖 |
Failed to load package at D:\work\gameframework\skynet-cocos-creator-client\packages\i18n: Failed to load main.js: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined 在根目录下执行了npm install 之后,protobuf的依赖问题好了,但是i18n的Failed to load main.js依然存在 |
从报错看 路径 有问题 我🤕️没环境 不好意思查不了 |
你那边的测试环境是cocos creator的什么版本,我用的cocos creator的2.2.1,应该是i18n的扩展没有安装成功,你有测试过这个i18n,在cocos creator 2.2.1的版本下安装运行不? |
=======================================
|
=============================================
|
你把 behavior3 删了 试试 |
删除掉behavior3,可以跑了,兄弟看看这个behavior3问题,能否整合进来,行为树是个好东西,另外这个客户端对接的是RillServer还是AntServer? |
这个的 协议格式 是而外一套 (与skynet交互是 先http验证然后拿到 ws 相关所需的信息 再以 rpcId(大端4字节) + body 形式的数据结构) |
就是说这个cocos客户端的项目和我们RillServer和AntServer都不能对接,需要自己定制修改,是吗 |
有一个简单的例子参考一下吗 |
Failed to load package at D:\work\gameframework\skynet-cocos-creator-client\packages\i18n: Failed to load main.js: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined
Failed to load package at D:\work\gameframework\skynet-cocos-creator-client\packages\i18n: Failed to load main.js: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined
load script [protobufjs] failed : Error: Cannot find module 'protobufjs'
load script [isomorphic-fetch] failed : Error: Cannot find module 'isomorphic-fetch'
load script [../../../../packages/i18n/runtime-scripts/LanguageData] failed : Error: Cannot find module '../../../../packages/i18n/runtime-scripts/LanguageData'
The text was updated successfully, but these errors were encountered: