You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2.代码里使用时,注入的方式:
import type { Redis } from 'ioredis'; @Inject()
private readonly redis: Redis;
3、报错:
framework.EggPrototypeNotFound: Object redis not found in LOAD_UNIT:......................................非关键信息省略..........
code: TEGG_EGG_PROTO_NOT_FOUND
serialNumber: EGG_PROTO_NOT_FOUND
还请大佬帮忙解答。
可复现问题的仓库地址(Reproduction Repo)
无
Node 版本号:
v18.14.1
TEgg 版本号:
3.5.2
相关插件名称与版本号:
1
操作平台与版本号:
window11
The text was updated successfully, but these errors were encountered:
在此输入你需要反馈的 Bug 具体信息(Bug in Detail):
1.使用的是eggjs框架,egg-redis不符合我的使用场景,于是通过addSingleton注册了自己的插件,名称为:‘redis’。确认注册是成功的。
2.代码里使用时,注入的方式:
import type { Redis } from 'ioredis';
@Inject()
private readonly redis: Redis;
3、报错:
framework.EggPrototypeNotFound: Object redis not found in LOAD_UNIT:......................................非关键信息省略..........
code: TEGG_EGG_PROTO_NOT_FOUND
serialNumber: EGG_PROTO_NOT_FOUND
还请大佬帮忙解答。
可复现问题的仓库地址(Reproduction Repo)
无
Node 版本号:
v18.14.1
TEgg 版本号:
3.5.2
相关插件名称与版本号:
1
操作平台与版本号:
window11
The text was updated successfully, but these errors were encountered: