Skip to content

fix(nuxt): Remove setting @sentry/nuxt external #16444

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 2, 2025

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 andreiborza and Lms24 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']
    }
},

@s1gr1d s1gr1d merged commit d2299a2 into develop Jun 2, 2025
39 checks passed
@s1gr1d s1gr1d deleted the fix/nuxt-rollup-external branch June 2, 2025 13:41
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