Skip to content

Build broken with Nuxt 3.16.0 #15628

@luc122c

Description

@luc122c

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

9.5.0

Framework Version

Nuxt 3.16.0

Link to Sentry event

N/A

Reproduction Example/SDK Setup

https://stackblitz.com/edit/nuxt-sentry-bundler?file=dist%2Fserver%2Fsentry.server.config.mjs

Steps to Reproduce

  1. Install Nuxt 3.16.0 & @sentry/nuxt module
  2. Install the @sentry/nuxt module (docs)
  3. Build the project - npm run build

Expected Result

This is a build on Nuxt 3.15.4:
Image

It does not contain the broken import.

Actual Result

The build output is completely different to Nuxt 3.15.4. It includes an import to a non-existent file:

import { init } from "./node_modules/_sentry/nuxt/build/esm/server/sdk.mjs";

The _sentry folder does not exist.

Image

Importing this module casues the application to crash.

Metadata

Metadata

Assignees

Labels

Package: nuxtIssues related to the Sentry Nuxt SDK

Type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions