Title: sveltekit auto-instrumentation problem with satisfies · Issue #8225 · getsentry/sentry-javascript · GitHub
Open Graph Title: sveltekit auto-instrumentation problem with satisfies · Issue #8225 · getsentry/sentry-javascript
X Title: sveltekit auto-instrumentation problem with satisfies · Issue #8225 · getsentry/sentry-javascript
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/...
Open Graph 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 th...
X 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 th...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/8225
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"sveltekit auto-instrumentation problem with satisfies","articleBody":"### Is there an existing issue for this?\r\n\r\n- [X] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues\r\n- [X] I have reviewed the documentation https://docs.sentry.io/\r\n- [X] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases\r\n\r\n### How do you use Sentry?\r\n\r\nSentry Saas (sentry.io)\r\n\r\n### Which SDK are you using?\r\n\r\n@sentry/sveltekit\r\n\r\n### SDK Version\r\n\r\n7.53.1\r\n\r\n### Framework Version\r\n\r\n_No response_\r\n\r\n### Link to Sentry event\r\n\r\n_No response_\r\n\r\n### SDK Setup\r\n\r\n_No response_\r\n\r\n### Steps to Reproduce\r\n\r\nWorked 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\r\n\r\nWorkaround: disabling the auto instrumentation fixes it.\r\n```js\r\nsentrySvelteKit({ autoInstrument: false })\r\n```\r\n\r\n### Expected Result\r\n\r\nshould build\r\n\r\n### Actual Result\r\n\r\n> [sentry-auto-instrumentation] Could not load /+page.server.ts: did not recognize object of type \"TSSatisfiesExpression\"\r\nerror during build:\r\nError: Could not load /+page.server.ts: did not recognize object of type \"TSSatisfiesExpression\"\r\n at Object.getFieldNames (/node_modules/.pnpm/ast-types@0.15.2/node_modules/ast-types/lib/types.js:664:19)\r\n at getSortedChildNodes (/node_modules/.pnpm/recast@0.22.0/node_modules/recast/lib/comments.js:53:23)\r\n at getSortedChildNodes (/node_modules/.pnpm/recast@0.22.0/node_modules/recast/lib/comments.js:62:9)\r\n at decorateComment (/node_modules/.pnpm/recast@0.22.0/node_modules/recast/lib/comments.js:70:22)\r\n at decorateComment (/node_modules/.pnpm/recast@0.22.0/node_modules/recast/lib/comments.js:82:13)\r\n at decorateComment (/node_modules/.pnpm/recast@0.22.0/node_modules/recast/lib/comments.js:82:13)\r\n at /node_modules/.pnpm/recast@0.22.0/node_modules/recast/lib/comments.js:119:9\r\n at Array.forEach (\u003canonymous>)\r\n at Object.attach (/node_modules/.pnpm/recast@0.22.0/node_modules/recast/lib/comments.js:117:14)\r\n at Object.parse (/node_modules/.pnpm/recast@0.22.0/node_modules/recast/lib/parser.js:107:16)\r\n ELIFECYCLE Command failed with exit code 1.\r\n\r\n","author":{"url":"https://github.com/fcrozatier","@type":"Person","name":"fcrozatier"},"datePublished":"2023-05-26T16:14:17Z","url":"https://github.com/getsentry/sentry-javascript/issues/8225"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:fbb5238a-c387-29c2-aec2-1e6827c5e60e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8CF6:2BF270:AB4CA:ECC6A:6B044C4B |
| html-safe-nonce | 820bc732d51e4999c47605d56f4c81babbb99e354cebb34e87248bb43db2ef1d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4Q0Y2OjJCRjI3MDpBQjRDQTpFQ0M2QTo2QjA0NEM0QiIsInZpc2l0b3JfaWQiOiI3OTg0MTYzMTg4MzQ2OTExNDciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 487cc814acd75e5ff7798be91801be27c5291c3163bef912e10903a72218408b |
| hovercard-subject-tag | issue:1727898085 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/8225/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8dd665cbd3db4cdde2be63246ad5caa968b75900882b74aab06c70aef5a065d4/getsentry/sentry-javascript/issues/8225 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8dd665cbd3db4cdde2be63246ad5caa968b75900882b74aab06c70aef5a065d4/getsentry/sentry-javascript/issues/8225 |
| og:image:alt | 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 th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | fcrozatier |
| hostname | github.com |
| expected-hostname | github.com |
| None | 002aa6b95ffa730b0aec436a5c383f536ad677284e60056037fb120afe37b730 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 059f24c781e3a0d7df3f27a97da0e93fab06ae39 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width