Skip to content

Remix request handler build could be a function #12082

Closed
@topaxi

Description

@topaxi

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.x

Framework Version

Remix 2

Link to Sentry event

No response

SDK Setup

No response

Steps to Reproduce

createRequestHandler({
  build // is typed as: ServerBuild | (() => Promise<ServerBuild>)
})

See:

https://github.com/remix-run/remix/blob/2e65318b15df407b31b101362e03729e61ec5622/packages/remix-express/server.ts#L40

But Sentry is always assuming that it is an object:

const wrappedEntry = { ...build.entry, module: { ...build.entry.module } };

Expected Result

Sentry should honor upstream interfaces

Actual Result

Sentry does not honor upstream interfaces

Metadata

Metadata

Assignees

Labels

Package: remixIssues related to the Sentry Remix SDK

Type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions