Skip to content

test(nuxt): Remove external config #16775

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

Closed
wants to merge 1 commit into from

Conversation

s1gr1d
Copy link
Member

@s1gr1d s1gr1d commented Jun 30, 2025

Removing the externals fixes the following runtime error: Cannot find module: import '/Users/[...long-file-path...]/node_modules/@sentry/nuxt/build/module/runtime/plugins/sentry.server';

The problem is that usually (also when I tested this in an external app), the server/index.mjs file includes two imports:

import '@sentry/core';
import '@sentry/node';

However, when @sentry/... is set external, it adds a very long import path (see above in the error message).

More about this in this comment: #16762 (comment)

The behavior changed with this PR in Nuxt: nuxt/nuxt#32354

@s1gr1d
Copy link
Member Author

s1gr1d commented Jun 30, 2025

Closing this. Apparently, this is only relevant for Nuxt v4.

The externals were deleted in this PR (which added the alpha of v4): #16770

@s1gr1d s1gr1d closed this Jun 30, 2025
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.

1 participant