Description
Is there an existing issue for this?
- I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
- I have reviewed the documentation https://docs.sentry.io/
- I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases
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/[email protected]/node_modules/ast-types/lib/types.js:664:19)
at getSortedChildNodes (/node_modules/.pnpm/[email protected]/node_modules/recast/lib/comments.js:53:23)
at getSortedChildNodes (/node_modules/.pnpm/[email protected]/node_modules/recast/lib/comments.js:62:9)
at decorateComment (/node_modules/.pnpm/[email protected]/node_modules/recast/lib/comments.js:70:22)
at decorateComment (/node_modules/.pnpm/[email protected]/node_modules/recast/lib/comments.js:82:13)
at decorateComment (/node_modules/.pnpm/[email protected]/node_modules/recast/lib/comments.js:82:13)
at /node_modules/.pnpm/[email protected]/node_modules/recast/lib/comments.js:119:9
at Array.forEach ()
at Object.attach (/node_modules/.pnpm/[email protected]/node_modules/recast/lib/comments.js:117:14)
at Object.parse (/node_modules/.pnpm/[email protected]/node_modules/recast/lib/parser.js:107:16)
ELIFECYCLE Command failed with exit code 1.