Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/remix
SDK Version
8.10.0
Framework Version
Remix 2.9.2
Link to Sentry event
No response
SDK Setup
// apps/project/app/modules/sentry/monitoring.server.tsimport{nodeProfilingIntegration}from"@sentry/profiling-node";import*asSentryfrom"@sentry/remix";exportfunctioninit(){Sentry.init({dsn: import.meta.env.VITE_SENTRY_DSN,environment: import.meta.env.VITE_ENVIRONMENT,debug: true,autoInstrumentRemix: true,// Set tracesSampleRate to 1.0 to capture 100%// of transactions for performance monitoring.// We recommend adjusting this value in productiontracesSampleRate: 1.0,profilesSampleRate: 1.0,// Profiling sample rate is relative to tracesSampleRatedenyUrls: [/\/healthcheck/,// TODO: be smarter about the public assets.../\/build\//,/\/favicons\//,/\/images\//,/\/fonts\//,/\/apple-touch-.*/,/\/robots.txt/,/\/favicon.ico/,/\/site\.webmanifest/,],integrations: [// Temporary disabling this because of https://github.com/getsentry/sentry-javascript/issues/12568// nodeProfilingIntegration(),// Add profiling integration to list of integrationsSentry.nativeNodeFetchIntegration(),Sentry.httpIntegration(),Sentry.httpClientIntegration(),],beforeSendTransaction(event){// ignore all healthcheck related transactionsif(event.request?.headers?.["X-Healthcheck"]==="true")returnnull;returnevent;},});}// apps/project/app/entry.server.tsxif(import.meta.env.VITE_SENTRY_DSN){awaitimport("./modules/sentry/monitoring.server.ts");}Steps to Reproduce
- Launch remix app with
remix vite:build - Open app in browser
- An Internal server error occurs
__vite_ssr_import_0__.nativeNodeFetchIntegration is not a function
at eval (/Users/simon/Code/Project/monorepo/apps/project/app/modules/sentry/monitoring.server.ts:32:27)
at async instantiateModule (file:///Users/simon/Code/Project/monorepo/node_modules/.pnpm/vite@5.2.11_@types+node@20.12.12/node_modules/vite/dist/node/chunks/dep-cNe07EU9.js:55058:9
Expected Result
Integrations being added.
Actual Result
Integrations are not recognized and break the app.
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/remix
SDK Version
8.10.0
Framework Version
Remix 2.9.2
Link to Sentry event
No response
SDK Setup
Steps to Reproduce
remix vite:build__vite_ssr_import_0__.nativeNodeFetchIntegration is not a function at eval (/Users/simon/Code/Project/monorepo/apps/project/app/modules/sentry/monitoring.server.ts:32:27) at async instantiateModule (file:///Users/simon/Code/Project/monorepo/node_modules/.pnpm/vite@5.2.11_@types+node@20.12.12/node_modules/vite/dist/node/chunks/dep-cNe07EU9.js:55058:9Expected Result
Integrations being added.
Actual Result
Integrations are not recognized and break the app.