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

Nuxt: Cannot find module: node_modules\@opentelemetry\resources\build\esm\detectors\platform\node\machine-id\execAsync #15204

Open
3 tasks done
simonmaass opened this issue Jan 28, 2025 · 6 comments
Labels
Package: nuxt Issues related to the Sentry Nuxt SDK

Comments

@simonmaass
Copy link

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/nuxt

SDK Version

8.51.0

Framework Version

Nuxt 3.15.3

Link to Sentry event

No response

Reproduction Example/SDK Setup

No response

Steps to Reproduce

  1. install @sentry/nuxt
  2. add '@sentry/nuxt/module' to modules in nuxt config
  3. run yarn dev

Expected Result

works

Actual Result

[nuxt] [request error] [unhandled] [500] Cannot find module 'node_modules@opentelemetry\resources\build\esm\detectors\platform\node\machine-id\execAsync' imported from node_modules@opentelemetry\resources\build\esm\detectors\platform\node\machine-id\getMachineId-win.js

@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 Jan 28, 2025
@github-actions github-actions bot added the Package: nuxt Issues related to the Sentry Nuxt SDK label Jan 28, 2025
@adamkasper
Copy link

i started having the same problem

@mydea
Copy link
Member

mydea commented Jan 28, 2025

Hey, can you show your actual setup code here? That would help us to reproduce what is going on. So, in which files have you put what Sentry config?

@simonmaass
Copy link
Author

simonmaass commented Jan 28, 2025

this might be related and due to nuxt: nuxt/nuxt#30749 (comment)

when reverting to nuxt 3.15.2 everything works again.

@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 Jan 28, 2025
@adamkasper
Copy link

adamkasper commented Jan 29, 2025

i also got it after upgrading from 3.15.2 to 3.15.3, so that's it

edit: i've just tried the new 3.15.4 and it's still happening

@andreiborza
Copy link
Member

Hi, thanks for reporting, we'll take a look.

@andreiborza
Copy link
Member

andreiborza commented Jan 30, 2025

I tried to reproduce this with a fresh nuxt project set up via nuxi and set up sentry using
npx @sentry/wizard@latest -i nuxt and did not run into this issue, neither with build nor with dev.

Could you provide a reproduction repo please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Package: nuxt Issues related to the Sentry Nuxt SDK
Projects
Status: No status
Development

No branches or pull requests

4 participants