Title: Error when using v8 lambda layer · Issue #12012 · getsentry/sentry-javascript · GitHub
Open Graph Title: Error when using v8 lambda layer · Issue #12012 · getsentry/sentry-javascript
X Title: Error when using v8 lambda layer · Issue #12012 · 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/12012
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Error when using v8 lambda layer","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/aws-serverless\n\n### SDK Version\n\n8.0.0\n\n### Framework Version\n\n_No response_\n\n### Link to Sentry event\n\n_No response_\n\n### SDK Setup\n\n_No response_\n\n### Steps to Reproduce\n\nI imported (actually just switched) from one layer (version 235 -> version 240) which changes from @sentry/serverless 7.113.0 to @sentry/aws-serverless 8.0.0.\r\n\r\nI updated the NODE_OPTIONS from `-r @sentry/serverless/dist/awslambda-auto` to `-r @sentry/aws-serverless/dist/awslambda-auto`\r\nI also updated calls to the SDK, but it doesn't get that far.\n\n### Expected Result\n\nThe SDK is loaded and initialized as expected\n\n### Actual Result\n\n```\r\n\r\nnode:internal/modules/cjs/loader:562\r\n--\r\nthrow e;\r\n^\r\nError [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './dist/awslambda-auto' is not defined by \"exports\" in /opt/nodejs/node_modules/@sentry/aws-serverless/package.json\r\nat new NodeError (node:internal/errors:387:5)\r\nat throwExportsNotFound (node:internal/modules/esm/resolve:365:9)\r\nat packageExportsResolve (node:internal/modules/esm/resolve:649:3)\r\nat resolveExports (node:internal/modules/cjs/loader:556:36)\r\nat Function.Module._findPath (node:internal/modules/cjs/loader:596:31)\r\nat Function.Module._resolveFilename (node:internal/modules/cjs/loader:1014:27)\r\nat Function.Module._load (node:internal/modules/cjs/loader:873:27)\r\nat internalRequire (node:internal/modules/cjs/loader:169:19)\r\nat Module._preloadModules (node:internal/modules/cjs/loader:1375:5)\r\nat loadPreloadModules (node:internal/bootstrap/pre_execution:583:5) {\r\ncode: 'ERR_PACKAGE_PATH_NOT_EXPORTED'\r\n}\r\n\r\n```","author":{"url":"https://github.com/JoaquinFernandez","@type":"Person","name":"JoaquinFernandez"},"datePublished":"2024-05-13T23:34:22Z","url":"https://github.com/getsentry/sentry-javascript/issues/12012"}
| 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:e0134b26-4ef5-98bc-0000-36d5ec4bf985 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D06A:C710:4695C2:629047:6B0441FF |
| html-safe-nonce | 4bae8f2e486405061c319d193af096597b95162c409c9864ef966748445ef2a5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMDZBOkM3MTA6NDY5NUMyOjYyOTA0Nzo2QjA0NDFGRiIsInZpc2l0b3JfaWQiOiI1NjY2MjYzNDM4MTU1MDcxOTk5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | c5cbd3893385d2d8bd3268f5f17d64bd1b4e04e5583ad6a7d068c3f8b8e7c2af |
| hovercard-subject-tag | issue:2294020201 |
| 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/12012/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7543d5f7883856485f4b70978f4b80bd7ce07bc9135e77a82f379bc27ae0f67c/getsentry/sentry-javascript/issues/12012 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7543d5f7883856485f4b70978f4b80bd7ce07bc9135e77a82f379bc27ae0f67c/getsentry/sentry-javascript/issues/12012 |
| 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 | JoaquinFernandez |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9185ccfefd80c1ff2d9ddcdb0cd2becf46b5a1efbbf30741a895e4bb8de25e64 |
| 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 | 06dc448a76fe4751ac1db26524aefa3aa3e889a8 |
| 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