Skip to content

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