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

[@sentry/nuxt] GLOBAL_OBJ does not provided #14846

Open
3 tasks done
elya-sidil-ogly opened this issue Dec 27, 2024 · 1 comment
Open
3 tasks done

[@sentry/nuxt] GLOBAL_OBJ does not provided #14846

elya-sidil-ogly opened this issue Dec 27, 2024 · 1 comment
Labels
Package: nuxt Issues related to the Sentry Nuxt SDK

Comments

@elya-sidil-ogly
Copy link

Is there an existing issue for this?

How do you use Sentry?

Self-hosted/on-premise

Which SDK are you using?

@sentry/nuxt

SDK Version

8.47.0

Framework Version

Nuxt 3.15.0

Link to Sentry event

No response

Reproduction Example/SDK Setup

No response

Steps to Reproduce

  1. add @sentry/nuxt to project using @sentry/wizard as described in docs
  2. running dev server

Expected Result

running dev server

Actual Result

 ERROR  [worker reload] [worker init] /home/pogos/projects/ticketme/web/widget/.nuxt/dev/index.mjs failed                                                                   6:39:37 PM

  

  [cause]: The requested module 'file:///home/pogos/projects/ticketme/node_modules/.pnpm/@[email protected]/node_modules/@sentry/core/cjs/index.js' does not provide an export named 'GLOBAL_OBJ'

      import { dropUndefinedKeys, getTraceMetaTags, GLOBAL_OBJ, vercelWaitUntil, getClient, logger, flush, getIsolationScope, getDefaultIsolationScope, withIsolationScope } from '/home/pogos/projects/ticketme/node_modules/.pnpm/@[email protected]/node_modules/@sentry/core/cjs/index.js';
      ^^^^^^^^^^
      SyntaxError: The requested module '/home/pogos/projects/ticketme/node_modules/.pnpm/@[email protected]/node_modules/@sentry/core/cjs/index.js' does not provide an export named 'GLOBAL_OBJ'
      at ModuleJob._instantiate (node:internal/modules/esm/module_job:180:21)
      at async ModuleJob.run (node:internal/modules/esm/module_job:263:5)
      at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:547:26)
      at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:116:5)
@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 Dec 27, 2024
@github-actions github-actions bot added the Package: nuxt Issues related to the Sentry Nuxt SDK label Dec 27, 2024
@s1gr1d
Copy link
Member

s1gr1d commented Dec 30, 2024

Hy, thanks for reaching out. Sadly, I am not able to reproduce your issue with pnpm.

In the error message you posted, I can see that version 7.120.0 is used. This is weird and should not be the case. Do you have any other versions of Sentry installed?

Can you pnpm why @sentry/core and post the result here?

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

2 participants