You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 17, 2024. It is now read-only.
Followed the steps to set up my Remix application with profiling as described by the sidebar that appears when clicking Set up Profiling
Below is my code for setting up @sentry/remix in my entry.server.ts file.
import * as SentryRemix from "@sentry/remix"
SentryRemix.init({
dsn: "omitted",
tracesSampleRate: 1,
profilesSampleRate: 1,
integrations: [
new SentryRemix.Integrations.LocalVariables({
captureAllExceptions: true,
}),
new ProfilingIntegration()
],
})
Expected Result
Profiling works correctly
Actual Result
When I deploy this, I see the following 500 error
2023-12-06T19:44:49.312Z undefined ERROR Uncaught Exception
{
"errorType": "ReferenceError",
"errorMessage": "__dirname is not defined in ES module scope",
"stack": [
"ReferenceError: __dirname is not defined in ES module scope",
" at node_modules/@sentry/profiling-node/lib/index.js (file:///var/task/ui/build/index.mjs:48006:777)",
" at file:///var/task/ui/build/index.mjs:26:50",
" at file:///var/task/ui/build/index.mjs:108280:37"
]
}