Title: Deployment on Netlify using SvelteKit succeeding during build but failing during requests (Cannot find module '@sentry/bundler-plugin-core/sentry-release-injection-file') · Issue #9544 · getsentry/sentry-javascript · GitHub
Open Graph Title: Deployment on Netlify using SvelteKit succeeding during build but failing during requests (Cannot find module '@sentry/bundler-plugin-core/sentry-release-injection-file') · Issue #9544 · getsentry/sentry-javascript
X Title: Deployment on Netlify using SvelteKit succeeding during build but failing during requests (Cannot find module '@sentry/bundler-plugin-core/sentry-release-injection-file') · Issue #9544 · 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/9544
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Deployment on Netlify using SvelteKit succeeding during build but failing during requests (Cannot find module '@sentry/bundler-plugin-core/sentry-release-injection-file')","articleBody":"### Is there an existing issue for this?\n\n- [X] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues\n- [X] I have reviewed the documentation https://docs.sentry.io/\n- [X] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases\n\n### How do you use Sentry?\n\nSentry Saas (sentry.io)\n\n### Which SDK are you using?\n\n@sentry/sveltekit\n\n### SDK Version\n\n7.80.0\n\n### Framework Version\n\n1.25.2\n\n### Link to Sentry event\n\n_No response_\n\n### SDK Setup\n\n```javascript\r\nSentry.init({\r\n dsn: \u003c...>,\r\n tracesSampleRate: 1\r\n});\r\n```\n\n### Steps to Reproduce\n\nDeploy a build in Netlify and access any of the site's URLs. I enabled Sentry integration through Netlify's UI. I also enabled GitHub integration. \n\nI used the SvelteKit wizard CLI tool to enable code changes in the app. Local testing and building work fine.\n\n### Expected Result\n\nShould be able to see the homepage without any issues.\n\n### Actual Result\n\nThe build and deploy process complete successfully, however when I access the site's homepage I get a 500 error. The serverside console shows the following error:\r\n\r\n```\r\nNov 13, 01:36:38 PM: 164b4a7d ERROR Error: Cannot find module '@sentry/bundler-plugin-core/sentry-release-injection-file'\r\nRequire stack:\r\n- /var/task/app/main/web/.netlify/functions-internal/sveltekit-render.mjs\r\n at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1028:15)\r\n at Function.resolve (node:internal/modules/cjs/helpers:125:19)\r\n at node_modules/@sentry/bundler-plugin-core/dist/cjs/index.js (file:///var/task/app/main/web/.netlify/functions-internal/sveltekit-render.mjs:77323:46)\r\n at __require2 (file:///var/task/app/main/web/.netlify/functions-internal/sveltekit-render.mjs:26:51)\r\n at node_modules/@sentry/vite-plugin/dist/cjs/index.js (file:///var/task/app/main/web/.netlify/functions-internal/sveltekit-render.mjs:77862:29)\r\n at __require2 (file:///var/task/app/main/web/.netlify/functions-internal/sveltekit-render.mjs:26:51)\r\n at node_modules/@sentry/sveltekit/cjs/vite/sourceMaps.js (file:///var/task/app/main/web/.netlify/functions-internal/sveltekit-render.mjs:83465:22)\r\n at __require2 (file:///var/task/app/main/web/.netlify/functions-internal/sveltekit-render.mjs:26:51)\r\n at node_modules/@sentry/sveltekit/cjs/vite/sentryVitePlugins.js (file:///var/task/app/main/web/.netlify/functions-internal/sveltekit-render.mjs:83632:22)\r\n at __require2 (file:///var/task/app/main/web/.netlify/functions-internal/sveltekit-render.mjs:26:51) {\r\n code: 'MODULE_NOT_FOUND',\r\n requireStack: [\r\n '/var/task/app/main/web/.netlify/functions-internal/sveltekit-render.mjs'\r\n ]\r\n}\r\n\r\n```","author":{"url":"https://github.com/kyllerss","@type":"Person","name":"kyllerss"},"datePublished":"2023-11-13T19:01:52Z","url":"https://github.com/getsentry/sentry-javascript/issues/9544"}
| 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:3c54878f-d48d-5784-a8cc-70619212f635 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A46E:63337:797416:AAAA1C:6B047CCC |
| html-safe-nonce | 668a0e3b541dcd230b3d45fe77fb5ef53fc3f7519e0dcde53a6ab5f2cf89e5a5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNDZFOjYzMzM3Ojc5NzQxNjpBQUFBMUM6NkIwNDdDQ0MiLCJ2aXNpdG9yX2lkIjoiOTc0MzMyOTI2NTMzODYwNTU2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | caf31bda35a9d2f4c64c3067c40c9ffa796f399ab861fa2160ebff427fa142c0 |
| hovercard-subject-tag | issue:1991279431 |
| 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/9544/issue_layout |
| twitter:image | https://opengraph.githubassets.com/916087d5313fd0736a0106d052b312cdc0e550167b6148d2fc9bdc5d31228a30/getsentry/sentry-javascript/issues/9544 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/916087d5313fd0736a0106d052b312cdc0e550167b6148d2fc9bdc5d31228a30/getsentry/sentry-javascript/issues/9544 |
| 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 | kyllerss |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0366ddfb372682a32e92a5d86155cb08fa83e5bbe79953a968789f2f7e24c511 |
| 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 | ed3f2e01f6b7672780c586c8af0e72726374d7b6 |
| 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