Nestjs8中使用nestjs-redis 提示can't resolve dependencies of the RedisCoreModule
Nestjs8中使用nestjs-redis 提示 Nest can’t resolve dependencies of the RedisCoreModule (Symbol(REDIS_MODULE_OPTIONS), ?). Please make sure that the argument ModuleRef at index [1] is available in the RedisCoreModule context
解决办法就是重新安装依赖,通过 git 安装下面源对应的 redis
cnpm i git+https://github.com/skunight/nestjs-redis.git --save
以前安装依赖的方法:
npm install nestjs-redis --save
如果有上面错误请换成git地址安装依赖:
cnpm i git+https://github.com/skunight/nestjs-redis.git --save
参考:https://github.com/skunight/nestjs-redis/issues/93
如果Nestjs8 或者 Nestjs8.x 以后的版本没有遇到以上错误请忽略