Can't resolve decorator InjectRedis
newmizanur opened this issue · 2 comments
newmizanur commented
Current behaviour
Error: Nest can't resolve dependencies
NestJS version: 7.6
Input Code
import { Redis } from 'ioredis';
import { InjectRedis } from '@liaoliaots/nestjs-redis';
constructor(@InjectRedis('cache') private readonly clientCache: Redis)
liaoliaots commented
Could you provide a minimal repository, please?
✿◡‿◡
newmizanur commented
My bad, I import it at the wrong place(Core Module). Working fine. ty!