Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Cannot find module '@opentelemetry/semantic-conventions/incubating' #15390

Open
3 tasks done
Dipesh1999 opened this issue Feb 12, 2025 · 3 comments
Open
3 tasks done

Cannot find module '@opentelemetry/semantic-conventions/incubating' #15390

Dipesh1999 opened this issue Feb 12, 2025 · 3 comments
Labels
Package: nestjs Issues related to the Sentry Nestjs SDK Sync: Jira apply to auto-create a Jira shadow ticket

Comments

@Dipesh1999
Copy link

Dipesh1999 commented Feb 12, 2025

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/nestjs

SDK Version

9.0.1

Framework Version

Nestjs 9

Link to Sentry event

No response

Reproduction Example/SDK Setup

import * as Sentry from '@sentry/nestjs';
import { nodeProfilingIntegration } from '@sentry/profiling-node';

// Ensure to call this before importing any other modules!
Sentry.init({
  dsn: process.env.SENTRY_DSN,
  integrations: [
    // Add our Profiling integration
    nodeProfilingIntegration(),
  ],

  // Add Tracing by setting tracesSampleRate
  // We recommend adjusting this value in production
  tracesSampleRate: 1.0,

  // Set sampling rate for profiling
  // This is relative to tracesSampleRate
  profilesSampleRate: 1.0,
});


Steps to Reproduce

Installed the latest version of @sentry/nestjs

Expected Result

Fails after Building

Actual Result


  Cannot find module '@opentelemetry/semantic-conventions/incubating' from '../../node_modules/@opentelemetry/instrumentation-pg/build/src/utils.js'

    Require stack:
      /node_modules/@opentelemetry/instrumentation-pg/build/src/utils.js
      /node_modules/@opentelemetry/instrumentation-pg/build/src/instrumentation.js
      /node_modules/@opentelemetry/instrumentation-pg/build/src/index.js
      /node_modules/@sentry/node/build/cjs/integrations/tracing/postgres.js
      /node_modules/@sentry/node/build/cjs/index.js
      /node_modules/@sentry/nestjs/build/cjs/index.js
      
      at Resolver.resolveModule (../../node_modules/jest-resolve/build/resolver.js:324:11)
      at Object.<anonymous> (../../node_modules/@opentelemetry/instrumentation-pg/src/utils.ts:40:1)
@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 Feb 12, 2025
@github-actions github-actions bot added the Package: nestjs Issues related to the Sentry Nestjs SDK label Feb 12, 2025
@lforst
Copy link
Member

lforst commented Feb 12, 2025

Hi, would you mind providing a small reproduction example we can pull?

@dalnoki dalnoki added the Sync: Jira apply to auto-create a Jira shadow ticket label Feb 20, 2025
@dalnoki
Copy link

dalnoki commented Feb 20, 2025

Hey @lforst another customer reported the same, they are using the React SDK. I added all available details to this shadow ticket, let me know if you need additional information!

@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 Feb 20, 2025
@s1gr1d
Copy link
Member

s1gr1d commented Feb 21, 2025

In the linked ticket, I see that the person tried to install different versions in the, but always with prefixed ^ which will install the latest minor version. So it could be that it was always the same version that got installed (the installed version can be seen e.g. in the lock file).

As @lforst already mentioned, a reproduction example would be awesome. But maybe trying to add an override in the package.json and pin the version (no prefixes) to a previous one could work.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Package: nestjs Issues related to the Sentry Nestjs SDK Sync: Jira apply to auto-create a Jira shadow ticket
Projects
Status: No status
Development

No branches or pull requests

4 participants