Skip to content

sveltekit auto-instrumentation problem with satisfies #8225

Description

@fcrozatier

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/sveltekit

SDK Version

7.53.1

Framework Version

No response

Link to Sentry event

No response

SDK Setup

No response

Steps to Reproduce

Worked fine a few days ago, now pnpm build throws a build error because of load functions with a satisfies ts expression. I didn't manage to make a minimal reproduction

Workaround: disabling the auto instrumentation fixes it.

sentrySvelteKit({ autoInstrument: false })

Expected Result

should build

Actual Result

[sentry-auto-instrumentation] Could not load /+page.server.ts: did not recognize object of type "TSSatisfiesExpression"
error during build:
Error: Could not load /+page.server.ts: did not recognize object of type "TSSatisfiesExpression"
at Object.getFieldNames (/node_modules/.pnpm/ast-types@0.15.2/node_modules/ast-types/lib/types.js:664:19)
at getSortedChildNodes (/node_modules/.pnpm/recast@0.22.0/node_modules/recast/lib/comments.js:53:23)
at getSortedChildNodes (/node_modules/.pnpm/recast@0.22.0/node_modules/recast/lib/comments.js:62:9)
at decorateComment (/node_modules/.pnpm/recast@0.22.0/node_modules/recast/lib/comments.js:70:22)
at decorateComment (/node_modules/.pnpm/recast@0.22.0/node_modules/recast/lib/comments.js:82:13)
at decorateComment (/node_modules/.pnpm/recast@0.22.0/node_modules/recast/lib/comments.js:82:13)
at /node_modules/.pnpm/recast@0.22.0/node_modules/recast/lib/comments.js:119:9
at Array.forEach ()
at Object.attach (/node_modules/.pnpm/recast@0.22.0/node_modules/recast/lib/comments.js:117:14)
at Object.parse (/node_modules/.pnpm/recast@0.22.0/node_modules/recast/lib/parser.js:107:16)
 ELIFECYCLE  Command failed with exit code 1.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions