pomelo reloadRemotes rpc报错,no such namespace:sys

pomelo开启reloadRemotes: true后,修改remote文件报错,fail to process remote message:Error: no such namespace:sys
这是因为pomelo-rpc重载文件的时候把命名空间整个重置了。。。
解决方案,修改
node_modules/pomelo-rpc/lib/rpc-server/gateway.js 里的watchServices方法
图示位置加上代码即可



本文作者:起点终站
文章标题: pomelo reloadRemotes rpc报错,no such namespace:sys
本文地址:https://blog.hellozwh.com/?post=437
版权声明:若无注明,本文皆为“起点终站”原创,转载请保留文章出处。
本文地址:https://blog.hellozwh.com/?post=437
版权声明:若无注明,本文皆为“起点终站”原创,转载请保留文章出处。


