Replies: 1 comment 1 reply
-
不会,除非你在那个阶段使用 @Inject() 依赖到了 redis组件。 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the problem(描述问题)
使用 @midwayjs/redis 从配置中心获取redis配置信息 在onConfigLoad 获取配置 目前看 @midwayjs/redis 会在 onConfigLoad 之前就开始加载了 导致报错 throw new core_1.MidwayCommonError('redis default instance not found.');
Midway Versions(Midway 版本)
✓ @midwayjs/faas-typings(not installed)
✓ @midwayjs/fc-starter(not installed)
✓ @midwayjs/serverless-http-parser(not installed)
✓ @midwayjs/async-hooks-context-manager(3.19.0)
✓ @midwayjs/axios(not installed)
✖ @midwayjs/bootstrap(current: 3.19.3, allow: ["3.19.0"])
✖ @midwayjs/bull(current: 3.19.3, allow: ["3.19.0","3.19.1"])
✓ @midwayjs/bull-board(not installed)
✓ @midwayjs/busboy(not installed)
✓ @midwayjs/cache-manager(not installed)
✓ @midwayjs/captcha(not installed)
✓ @midwayjs/casbin(not installed)
✓ @midwayjs/casbin-redis-adapter(not installed)
✓ @midwayjs/casbin-typeorm-adapter(not installed)
✓ @midwayjs/code-dye(not installed)
✓ @midwayjs/consul(not installed)
✓ @midwayjs/core(3.19.0)
✓ @midwayjs/cos(not installed)
✓ @midwayjs/cron(not installed)
✖ @midwayjs/cross-domain(current: 3.19.3, allow: ["3.19.0"])
✓ @midwayjs/decorator(not installed)
✓ @midwayjs/etcd(not installed)
✓ @midwayjs/express-session(not installed)
✓ @midwayjs/faas(not installed)
✓ @midwayjs/grpc(not installed)
✓ @midwayjs/http-proxy(not installed)
✖ @midwayjs/i18n(current: 3.19.2, allow: ["3.19.0"])
✖ @midwayjs/info(current: 3.19.2, allow: ["3.19.0"])
✖ @midwayjs/jwt(current: 3.19.3, allow: ["3.19.0"])
✖ @midwayjs/kafka(current: 3.19.2, allow: ["3.19.0"])
✓ @midwayjs/leoric(not installed)
✓ @midwayjs/mikro(not installed)
✖ @midwayjs/mock(current: 3.19.2, allow: ["3.19.0"])
✖ @midwayjs/mongoose(current: 3.19.3, allow: ["3.19.0","3.19.1"])
✓ @midwayjs/mqtt(not installed)
✓ @midwayjs/oss(not installed)
✖ @midwayjs/otel(current: 3.19.3, allow: ["3.19.0","3.19.1"])
✓ @midwayjs/passport(not installed)
✓ @midwayjs/process-agent(not installed)
✓ @midwayjs/prometheus(not installed)
✓ @midwayjs/prometheus-socket-io(not installed)
✓ @midwayjs/rabbitmq(not installed)
✖ @midwayjs/redis(current: 3.20.0, allow: ["3.19.0"])
✓ @midwayjs/security(not installed)
✖ @midwayjs/sequelize(current: 3.19.2, allow: ["3.19.0"])
✖ @midwayjs/session(current: 3.19.2, allow: ["3.19.0"])
✖ @midwayjs/socketio(current: 3.19.2, allow: ["3.19.0"])
✖ @midwayjs/static-file(current: 3.19.3, allow: ["3.19.0"])
✓ @midwayjs/swagger(not installed)
✓ @midwayjs/tablestore(not installed)
✓ @midwayjs/tags(not installed)
✓ @midwayjs/tenant(not installed)
✖ @midwayjs/typegoose(current: 3.19.3, allow: ["3.19.0","3.19.1"])
✓ @midwayjs/typeorm(not installed)
✖ @midwayjs/upload(current: 3.19.3, allow: ["3.19.0"])
✖ @midwayjs/validate(current: 3.19.2, allow: ["3.19.0"])
✓ @midwayjs/version(not installed)
✓ @midwayjs/view(not installed)
✓ @midwayjs/view-ejs(not installed)
✓ @midwayjs/view-nunjucks(not installed)
✓ @midwayjs/web(not installed)
✓ @midwayjs/express(not installed)
✖ @midwayjs/koa(current: 3.19.2, allow:
Beta Was this translation helpful? Give feedback.
All reactions