Skip to content

[Remix] Cannot read properties of undefined (reading '__sentry_original__') #8904

Closed
@piotrkulpinski

Description

@piotrkulpinski

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

7.65.0

Framework Version

Remix v1.19.3

Link to Sentry event

No response

SDK Setup

Sentry.init({
  dsn: "_MY_DSN_",
  tracesSampleRate: 1.0,
})

Steps to Reproduce

Hi,
I'm trying to set up Sentry with the latest Remix version (v1.19.3) but I'm getting the following error right after I start the app.
Seems to be the issue with server part only (client working fine).

All v2 future flags in Remix are enabled.

Let me know if you need more info to check this.

Expected Result

.

Actual Result

TypeError: Cannot read properties of undefined (reading '__sentry_original__')
    at instrumentBuild (/(...))/node_modules/@sentry/src/utils/instrumentServer.ts:421:1)
    at Object.<anonymous> (/(...))/node_modules/@sentry/src/utils/instrumentServer.ts:462:1)
    at Object.createRequestHandler (/(...))/node_modules/@remix-run/express/dist/server.js:34:28)
    at /(...))/node_modules/@remix-run/serve/dist/index.js:44:22
    at Layer.handle [as handle_request] (/(...))/node_modules/express/lib/router/layer.js:95:5)
    at next (/(...))/node_modules/express/lib/router/route.js:144:13)
    at next (/(...))/node_modules/express/lib/router/route.js:140:7)
    at next (/(...))/node_modules/express/lib/router/route.js:140:7)
    at next (/(...))/node_modules/express/lib/router/route.js:140:7)
    at next (/(...))/node_modules/express/lib/router/route.js:140:7)

Metadata

Metadata

Assignees

Labels

Package: remixIssues related to the Sentry Remix SDK

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions