Skip to content

Conversation

s1gr1d
Copy link
Member

@s1gr1d s1gr1d commented Jun 2, 2025

This reverts commit 6e61f82.

Reverts this PR: #16407

@sentry/nuxt is not added as dependency in the node_modules of the build output after version 3.15.0 as mentioned here: #16422

fixes #16422

@s1gr1d s1gr1d requested review from Lms24 and andreiborza June 2, 2025 12:14
Copy link
Member

@Lms24 Lms24 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there anything we need to do to fix the issue for which we opened #16407?

@s1gr1d
Copy link
Member Author

s1gr1d commented Jun 2, 2025

I still need to dig a bit into this. I initially created the PR to externalize it because it was bundling in OTel and other dependencies (as written in the description of #16407).

However, this does not always happen and there is no reliable way to reproduce this. In case users stumble over the problem, they can manually externalize the needed dependencies like this:

// in nuxt.config.ts
nitro: {
    rollupConfig: {
      external: ['@sentry/nuxt'], // or ['@sentry/node', '@sentry/core']
    }
},

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Externalising @sentry/nuxt breaks deployed applications

2 participants