Open guozanhua opened 4 years ago
没安装依赖
没安装依赖
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
at validateString (internal/validators.js:105:11)
at Object.join (path.js:372:7)
at Object.
在根目录下执行了npm install 之后,protobuf的依赖问题好了,但是i18n的Failed to load main.js依然存在
从报错看 路径 有问题 我🤕️没环境 不好意思查不了
从报错看 路径 有问题 我🤕️没环境 不好意思查不了
你那边的测试环境是cocos creator的什么版本,我用的cocos creator的2.2.1,应该是i18n的扩展没有安装成功,你有测试过这个i18n,在cocos creator 2.2.1的版本下安装运行不?
从报错看 路径 有问题 我🤕️没环境 不好意思查不了
你那边的测试环境是cocos creator的什么版本,我用的cocos creator的2.2.1,应该是i18n的扩展没有安装成功,你有测试过这个i18n,在cocos creator 2.2.1的版本下安装运行不?
======================================= load script [../../../../packages/i18n/runtime-scripts/LanguageData] failed : Error: Cannot find module '../../../../packages/i18n/runtime-scripts/LanguageData' Require stack:
看了一下输出日志,cocos creator加载packages的脚本是从临时创建的目录下去加载,而packages,并没有一起复制过去,导致了这个问题,这个是cocos creator 2.2.1的问题?
Can not find deps [buffer] for path : preview-scripts/node_modules/@protobufjs/inquire/index.js modular.js:50 Can not find deps [long] for path : preview-scripts/__node_modules/@protobufjs/inquire/index.js modular.js:50 Can not find deps [fs] for path : preview-scripts/node_modules/@protobufjs/inquire/index.js modular.js:50 Can not find deps [fs] for path : preview-scripts/__node_modules/@protobufjs/inquire/index.js modular.js:50 Can not find deps [../decorators] for path : preview-scripts/assets/script/lib/behavior3/core/BehaviorTree.js modular.js:50 Can not find deps [./constants] for path : preview-scripts/assets/script/lib/behavior3/index.js modular.js:50 Can not find deps [./b3.functions] for path : preview-scripts/assets/script/lib/behavior3/index.js modular.js:50 Can not find deps [./actions/Error] for path : preview-scripts/assets/script/lib/behavior3/index.js modular.js:50 Can not find deps [./actions/Failer] for path : preview-scripts/assets/script/lib/behavior3/index.js modular.js:50 Can not find deps [./actions/Runner] for path : preview-scripts/assets/script/lib/behavior3/index.js modular.js:50 Can not find deps [./actions/Succeeder] for path : preview-scripts/assets/script/lib/behavior3/index.js modular.js:50 Can not find deps [./actions/Wait] for path : preview-scripts/assets/script/lib/behavior3/index.js modular.js:50 Can not find deps [./composites/MemPriority] for path : preview-scripts/assets/script/lib/behavior3/index.js modular.js:50 Can not find deps [./composites/MemSequence] for path : preview-scripts/assets/script/lib/behavior3/index.js modular.js:50 Can not find deps [./composites/Priority] for path : preview-scripts/assets/script/lib/behavior3/index.js modular.js:50 Can not find deps [./composites/Sequence] for path : preview-scripts/assets/script/lib/behavior3/index.js modular.js:50 Can not find deps [./core/Action] for path : preview-scripts/assets/script/lib/behavior3/index.js modular.js:50 Can not find deps [./core/BaseNode] for path : preview-scripts/assets/script/lib/behavior3/index.js
Can not find deps [./core/BehaviorTree] for path : preview-scripts/assets/script/lib/behavior3/index.js modular.js:50 Can not find deps [./core/Blackboard] for path : preview-scripts/assets/script/lib/behavior3/index.js modular.js:50 Can not find deps [./core/Composite] for path : preview-scripts/assets/script/lib/behavior3/index.js modular.js:50 Can not find deps [./core/Condition] for path : preview-scripts/assets/script/lib/behavior3/index.js modular.js:50 Can not find deps [./core/Decorator] for path : preview-scripts/assets/script/lib/behavior3/index.js modular.js:50 Can not find deps [./core/Tick] for path : preview-scripts/assets/script/lib/behavior3/index.js modular.js:50 Can not find deps [./decorators/Inverter] for path : preview-scripts/assets/script/lib/behavior3/index.js modular.js:50 Can not find deps [./decorators/Limiter] for path : preview-scripts/assets/script/lib/behavior3/index.js modular.js:50 Can not find deps [./decorators/MaxTime] for path : preview-scripts/assets/script/lib/behavior3/index.js modular.js:50 Can not find deps [./decorators/RepeatUntilFailure] for path : preview-scripts/assets/script/lib/behavior3/index.js Can not find deps [./decorators/RepeatUntilSuccess] for path : preview-scripts/assets/script/lib/behavior3/index.js modular.js:50 Can not find deps [./decorators/Repeater] for path : preview-scripts/assets/script/lib/behavior3/index.js
=========================================================== 这个是我什么依赖没有安装吗
你把 behavior3 删了 试试
你把 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'