Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/vue
SDK Version
8.2.1
Framework Version
Vue 3.4.27 (Nuxt 3.11.2)
Link to Sentry event
No response
SDK Setup
Sentry.init({
enabled: !import.meta.dev,
environment: import.meta.env.MODE,
app: vueApp,
dsn: sentryDsn,
integrations: [
new SupabaseIntegration(SupabaseClient, {
tracing: true,
breadcrumbs: true,
errors: true,
}),
Sentry.browserTracingIntegration({
router,
shouldCreateSpanForRequest: (url) => !url.startsWith(`${supabaseUrl}/rest`),
}),
Sentry.captureConsoleIntegration({ levels: ['warn', 'error'] }),
],
tracesSampleRate: 1.0,
tracePropagationTargets: [/^\/(?!\/)/, supabaseUrl],
ignoreErrors: ['AuthApiError: Invalid login credentials', 'FrontendError: errors.frontend.signInFailed'],
})
Steps to Reproduce
- Updated
@sentry/vue and @sentry/node from 7.116.0 to 8.2.1
- Deployed to Vercel
- Got 500 error on both SSR and non-SSR routes
Expected Result
It should not break the deployment and import everything correctly in the build.
Actual Result
Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/var/task/node_modules/@opentelemetry/instrumentation/hook.mjs' imported from /var/task/node_modules/@sentry/node/esm/sdk/init.js
at finalizeResolution (node:internal/modules/esm/resolve:269:11)
at moduleResolve (node:internal/modules/esm/resolve:937:10)
at moduleResolveWithNodePath (node:internal/modules/esm/resolve:1161:14)
at defaultResolve (node:internal/modules/esm/resolve:1204:79)
at nextResolve (node:internal/modules/esm/hooks:866:28)
at Hooks.resolve (node:internal/modules/esm/hooks:304:30)
at ModuleLoader.resolve (node:internal/modules/esm/loader:352:35)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:234:38)
at ModuleLoader.import (node:internal/modules/esm/loader:322:34)
at Hooks.register (node:internal/modules/esm/hooks:165:51) {
code: 'ERR_MODULE_NOT_FOUND',
url: 'file:///var/task/node_modules/@opentelemetry/instrumentation/hook.mjs'
}
Node.js process exited with exit status: 1. The logs above can help with debugging the issue.
INIT_REPORT Init Duration: 1620.35 ms Phase: invoke Status: error Error Type: Runtime.ExitError
Not sure where the @sentry/node usage comes from since it is only used in a Nitro route that is not called during SSR. But perhaps the entire build is just broken.
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/vue
SDK Version
8.2.1
Framework Version
Vue 3.4.27 (Nuxt 3.11.2)
Link to Sentry event
No response
SDK Setup
Steps to Reproduce
@sentry/vueand@sentry/nodefrom 7.116.0 to 8.2.1Expected Result
It should not break the deployment and import everything correctly in the build.
Actual Result
Not sure where the
@sentry/nodeusage comes from since it is only used in a Nitro route that is not called during SSR. But perhaps the entire build is just broken.