-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nest can't resolve dependencies of the ControllerInjector #51
Comments
I've just tried adding Using:
|
I solved it by upgrading my NestJS version to 9 |
I tried with NestJS version 9 + |
I'm having the same issue after upgrading to NestJS 10. Any updates on this? Thank you! |
Same problem with NestJS 10 as well. I tried removing OpenTelemetryModule.forRoot({
traceAutoInjectors: [],
serviceName: 'my-service',
}), [Nest] 27056 - 01/24/2024, 3:26:12 PM ERROR [ExceptionHandler] Nest can't resolve dependencies of the DecoratorInjector (?). Please make sure that the argument ModulesContainer at index [0] is available in the OpenTelemetryModule context.
Potential solutions:
- Is OpenTelemetryModule a valid NestJS module?
- If ModulesContainer is a provider, is it part of the current OpenTelemetryModule?
- If ModulesContainer is exported from a separate @Module, is that module imported within OpenTelemetryModule?
@Module({
imports: [ /* the Module containing ModulesContainer */ ]
})
Error: Nest can't resolve dependencies of the DecoratorInjector (?). Please make sure that the argument ModulesContainer at index [0] is available in the OpenTelemetryModule context.
Potential solutions:
- Is OpenTelemetryModule a valid NestJS module?
- If ModulesContainer is a provider, is it part of the current OpenTelemetryModule?
- If ModulesContainer is exported from a separate @Module, is that module imported within OpenTelemetryModule?
@Module({
imports: [ /* the Module containing ModulesContainer */ ]
}) |
I followed the doc but got an error. Can anyone help me?
The text was updated successfully, but these errors were encountered: