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
- Install Nuxt 3.16.0 & @sentry/nuxt module
- Install the @sentry/nuxt module (docs)
- Build the project -
npm run build
Expected Result
This is a build on Nuxt 3.15.4:

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.
Importing this module casues the application to crash.
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
npm run buildExpected Result
This is a build on Nuxt 3.15.4:

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:
The
_sentryfolder does not exist.Importing this module casues the application to crash.