Skip to content

test(nuxt): Remove external config - #16775

Closed
s1gr1d wants to merge 1 commit into
developfrom
sig/nuxt-e2e-remove-external
Closed

test(nuxt): Remove external config#16775
s1gr1d wants to merge 1 commit into
developfrom
sig/nuxt-e2e-remove-external

Conversation

@s1gr1d

@s1gr1d s1gr1d commented Jun 30, 2025

Copy link
Copy Markdown
Member

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

s1gr1d commented Jun 30, 2025

Copy link
Copy Markdown
Member Author

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