Skip to content

Nest cant resolve dependencies of the RedisLockService #6

@talah221

Description

@talah221

Nest can't resolve dependencies of the RedisLockService (?, REDIS_LOCK_OPTIONS). Please make sure that the argument RedisService at index [0] is available in the RedisLockModule context.

Potential solutions:

  • If RedisService is a provider, is it part of the current RedisLockModule?

  • If RedisService is exported from a separate @module, is that module imported within RedisLockModule?
    @module({
    imports: [ /* the Module containing RedisService */ ]
    })

    "@nestjs/common": "^8.1.1",
        "nestjs-redis": "git+https://github.com/skunight/nestjs-redis.git",
    

    "nestjs-simple-redis-lock": "^0.2.1",
    "@huangang/nestjs-simple-redis-lock": "^0.5.0",

tried both importing the redisLockService from @huangang and from nestjs-simple-redis-lock.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions