#Error: Nest can't resolve dependencies of the ThrottlerGuard

6 messages · Page 1 of 1 (latest)

vivid moat
#

I reinstalled all the project dependencies due to some conflicts
but the ThrottlerGuard suddenly no longer works
here is the error message

server:dev: [Nest] 19932  - 10/11/2023, 5:49:52 PM   ERROR [ExceptionHandler] Nest can't resolve dependencies of the ThrottlerGuard (THROTTLER:MODULE_OPTIONS, Symbol(ThrottlerStorage), ?). Please make sure that the argument Reflector at index [2] is available in the AppModule context.
server:dev: 
server:dev: Potential solutions:
server:dev: - Is AppModule a valid NestJS module?
server:dev: - If Reflector is a provider, is it part of the current AppModule?
server:dev: - If Reflector is exported from a separate @Module, is that module imported within AppModule?
server:dev:   @Module({
server:dev:     imports: [ /* the Module containing Reflector */ ]
server:dev:   })
server:dev: 
server:dev: Error: Nest can't resolve dependencies of the ThrottlerGuard (THROTTLER:MODULE_OPTIONS, Symbol(ThrottlerStorage), ?). Please make sure that the argument Reflector at index [2] is available in the AppModule context.
server:dev: 
server:dev: Potential solutions:
server:dev: - Is AppModule a valid NestJS module?
server:dev: - If Reflector is a provider, is it part of the current AppModule?
server:dev: - If Reflector is exported from a separate @Module, is that module imported within AppModule?
server:dev:   @Module({
server:dev:     imports: [ /* the Module containing Reflector */ ]
server:dev:   })

I don't know what reflector he mean?

random surge
vivid moat
random surge
#

peer deps

vital tundra
#

Because, IIRC, npm doesn't have a good/easy interface for that like yarn and pnpm do, other than just specifying the peerDeps. What kind of monorepo is this? turbo, nx, nest, npm workspace only, something else entirely?