Skip to content

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

Description

@elya-sidil-ogly

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/@sentry+core@7.120.0/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/@sentry+core@7.120.0/node_modules/@sentry/core/cjs/index.js';
      ^^^^^^^^^^
      SyntaxError: The requested module '/home/pogos/projects/ticketme/node_modules/.pnpm/@sentry+core@7.120.0/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)

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugExternal DependencyTo close this issue, an external dependency needs to be adjusted/fixed

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions