Skip to content
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

rpc npm run start 报错!run dev没有问题 ,rpc也正常 #4582

Closed
3338606790 opened this issue Jan 19, 2021 · 1 comment
Closed

rpc npm run start 报错!run dev没有问题 ,rpc也正常 #4582

3338606790 opened this issue Jan 19, 2021 · 1 comment

Comments

@3338606790
Copy link

> egg-scripts start --worker=2 --title=egg-server

/home/moogrid/server/book/node_modules/sofa-rpc-node/lib/client/consumer.js:25
    assert(options.allowMock || options.serverHost || options.registry, '[RpcConsumer] options.registry or options.serverHost at least set one');
    ^
AssertionError [ERR_ASSERTION]: [RpcConsumer] options.registry or options.serverHost at least set one
  
"egg": {
     "framework": "sofa-node",
    "typescript": true,
    "declarations": true
  },
 "dependencies": {
    "egg-mail": "^1.0.12",
    "egg-scripts": "^2.13.0",
    "sofa-node": "^1.0.1"
  }
```json

@egg-bot
Copy link

egg-bot commented Jan 19, 2021

Hello @fuxiaowo. Please provide a reproducible example following the instruction.

Issues labeled by Need Reproduce will be closed if no activities in 7 days.


@fuxiaowo,请根据这个说明提供最小可复现代码。

如果在 7 天内没有进展会被自动关闭。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants