Skip to content

Problem with @senty/core with @sentry/nuxt 10.5 #17454

@Dima282717799

Description

@Dima282717799

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

10.5

Framework Version

nuxt 3.15.4

Link to Sentry event

No response

Reproduction Example/SDK Setup

min] [2025-08-25 20:22:57] SyntaxError: Named export 'debug' not found. The requested module '@sentry/core' is a CommonJS module, which may not support all module.exports as named exports. [lms-td-admin] [2025-08-25 20:22:57] CommonJS modules can always be imported via the default export, for example using: [lms-td-admin] [2025-08-25 20:22:57] [lms-td-admin] [2025-08-25 20:22:57] import pkg from '@sentry/core'; [lms-td-admin] [2025-08-25 20:22:57] const { applySdkMetadata, getGlobalScope, vercelWaitUntil, debug, flush } = pkg; [lms-td-admin] [2025-08-25 20:22:57] [lms-td-admin] [2025-08-25 20:22:57] at ModuleJob._instantiate (node:internal/modules/esm/module_job:175:21) [lms-td-admin] [2025-08-25 20:22:57] at async ModuleJob.run (node:internal/modules/esm/module_job:258:5) [lms-td-admin] [2025-08-25 20:22:57] at async ModuleLoader.import (node:internal/modules/esm/loader:540:24) [lms-td-admin] [2025-08-25 20:22:57] at async file:///workspace/.output/server/chunks/routes/renderer.mjs:69:24 [lms-td-admin] [2025-08-25 20:22:57] at async Object.render (file:///workspace/.output/server/chunks/routes/renderer.mjs:476:20) [lms-td-admin] [2025-08-25 20:22:57] at async Object.handler (file:///workspace/.output/server/chunks/nitro/nitro.mjs:7777:22) [lms-td-admin] [2025-08-25 20:22:57] at async Object.handler (file:///workspace/.output/server/chunks/nitro/nitro.mjs:1893:19) [lms-td-admin] [2025-08-25 20:22:57] at async Server.toNodeHandle (file:///workspace/.output/server/chunks/nitro/nitro.mjs:2164:7), [lms-td-admin] [2025-08-25 20:22:57] statusCode: 500, [lms-td-admin] [2025-08-25 20:22:57] fatal: false, [lms-td-admin] [2025-08-25 20:22:57] unhandled: true, [lms-td-admin] [2025-08-25 20:22:57] statusMessage: undefined, [lms-td-admin] [2025-08-25 20:22:57] data: undefined [lms-td-admin] [2025-08-25 20:22:57] } [lms-td-admin] [2025-08-25 20:22:57] [request error] [unhandled] [GET] https://new-lms-dev-jonks.ondigitalocean.app/__nuxt_error?error=true&url=%2Flogin&statusCode=500&statusMessage=Server+Error&message=Server+Error [lms-td-admin] [2025-08-25 20:22:57] file:///workspace/.output/server/chunks/build/server.mjs:38 [lms-td-admin] [2025-08-25 20:22:57] import { applySdkMetadata, getGlobalScope, vercelWaitUntil, debug, flush } from '@sentry/core'

Steps to Reproduce

  1. Going throw this doc https://nuxt.com/modules/sentry

Expected Result

After build have functionality application

Actual Result

After build have error

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    Waiting for: Community

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions