Skip to content
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

Build Issues After Upgrading to NestJS v8.2.0 #13

Closed
aaron-harvey opened this issue Nov 10, 2021 · 1 comment
Closed

Build Issues After Upgrading to NestJS v8.2.0 #13

aaron-harvey opened this issue Nov 10, 2021 · 1 comment
Assignees

Comments

@aaron-harvey
Copy link

aaron-harvey commented Nov 10, 2021

The follow error is thrown when using the latest nestjs version using a fresh nx/nestj workspace

[Nest] 95900  - 11/09/2021, 7:53:08 PM     LOG [NestFactory] Starting Nest application...
[Nest] 95900  - 11/09/2021, 7:53:08 PM   ERROR [ExceptionHandler] Nest can't resolve dependencies of the GuardInjector (?). Please make sure that the argument ModulesContainer at index [0] is available in the OpenTelemetryModule context.

Potential solutions:
- 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 GuardInjector (?). Please make sure that the argument ModulesContainer at index [0] is available in the OpenTelemetryModule context.

package.json

  "dependencies": {
    "@metinseylan/nestjs-opentelemetry": "^2.0.0",
    "@nestjs/common": "^8.2.0",
    "@nestjs/core": "^8.2.0",
    "@nestjs/platform-express": "^8.2.0",
    "@opentelemetry/api": "^1.0.3",
    "@opentelemetry/sdk-trace-base": "^1.0.0",
    "eventemitter2": "^6.4.5",
    "reflect-metadata": "^0.1.13",
    "rxjs": "~7.4.0",
    "tslib": "^2.0.0"
  },
@MetinSeylan
Copy link
Owner

hey @aaron-harvey after version 2.0.2, looks like issue is fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants