Title: lambda layer > 60 seem to break with "Error: Cannot find module './async'" · Issue #4949 · getsentry/sentry-javascript · GitHub
Open Graph Title: lambda layer > 60 seem to break with "Error: Cannot find module './async'" · Issue #4949 · getsentry/sentry-javascript
X Title: lambda layer > 60 seem to break with "Error: Cannot find module './async'" · Issue #4949 · 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/4949
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"lambda layer > 60 seem to break with \"Error: Cannot find module './async'\"","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 package are you using?\r\n\r\n@sentry/serverless\r\n\r\n### SDK Version\r\n\r\n6.19.4\r\n\r\n### Framework Version\r\n\r\nN/A\r\n\r\n### Link to Sentry event\r\n\r\n_No response_\r\n\r\n### Steps to Reproduce\r\n\r\nCloudformation:\r\n\r\n```yaml\r\nGlobals:\r\n Function:\r\n Layers:\r\n - !Sub 'arn:aws:lambda:${AWS::Region}:943013980633:layer:SentryNodeServerlessSDK:61'\r\n```\r\n\r\nIn lambda:\r\n\r\n```js\r\nrequire('@sentry/serverless');\r\n```\r\n\r\nI am in `ap-southeast-1` if that matters. Basically 61, 62 fail on an async import. 63 fails on some other import.\r\n\r\n### Expected Result\r\n\r\nIs functional.\r\n\r\n### Actual Result\r\n\r\n```\r\n{\r\n \"errorType\": \"Runtime.ImportModuleError\",\r\n \"errorMessage\": \"Error: Cannot find module './async'\\nRequire stack:\\n- /opt/nodejs/node_modules/@sentry/serverless/node_modules/@sentry/utils/build/dist/index.js\\n- /opt/nodejs/node_modules/@sentry/serverless/node_modules/@sentry/hub/build/dist/scope.js\\n- /opt/nodejs/node_modules/@sentry/serverless/node_modules/@sentry/hub/build/dist/index.js\\n- /opt/nodejs/node_modules/@sentry/serverless/node_modules/@sentry/minimal/build/dist/index.js\\n- /opt/nodejs/node_modules/@sentry/serverless/node_modules/@sentry/core/build/dist/index.js\\n- /opt/nodejs/node_modules/@sentry/serverless/node_modules/@sentry/node/build/dist/index.js\\n- /opt/nodejs/node_modules/@sentry/serverless/build/dist/awslambda.js\\n- /opt/nodejs/node_modules/@sentry/serverless/build/dist/index.js\\n- /var/task/onconnect.js\\n- /var/runtime/UserFunction.js\\n- /var/runtime/index.js\",\r\n \"trace\": [\r\n \"Runtime.ImportModuleError: Error: Cannot find module './async'\",\r\n \"Require stack:\",\r\n \"- /opt/nodejs/node_modules/@sentry/serverless/node_modules/@sentry/utils/build/dist/index.js\",\r\n \"- /opt/nodejs/node_modules/@sentry/serverless/node_modules/@sentry/hub/build/dist/scope.js\",\r\n \"- /opt/nodejs/node_modules/@sentry/serverless/node_modules/@sentry/hub/build/dist/index.js\",\r\n \"- /opt/nodejs/node_modules/@sentry/serverless/node_modules/@sentry/minimal/build/dist/index.js\",\r\n \"- /opt/nodejs/node_modules/@sentry/serverless/node_modules/@sentry/core/build/dist/index.js\",\r\n \"- /opt/nodejs/node_modules/@sentry/serverless/node_modules/@sentry/node/build/dist/index.js\",\r\n \"- /opt/nodejs/node_modules/@sentry/serverless/build/dist/awslambda.js\",\r\n \"- /opt/nodejs/node_modules/@sentry/serverless/build/dist/index.js\",\r\n \"- /var/task/onconnect.js\",\r\n \"- /var/runtime/UserFunction.js\",\r\n \"- /var/runtime/index.js\",\r\n \" at _loadUserApp (/var/runtime/UserFunction.js:202:13)\",\r\n \" at Object.module.exports.load (/var/runtime/UserFunction.js:242:17)\",\r\n \" at Object.\u003canonymous> (/var/runtime/index.js:43:30)\",\r\n \" at Module._compile (internal/modules/cjs/loader.js:1085:14)\",\r\n \" at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)\",\r\n \" at Module.load (internal/modules/cjs/loader.js:950:32)\",\r\n \" at Function.Module._load (internal/modules/cjs/loader.js:790:12)\",\r\n \" at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:75:12)\",\r\n \" at internal/main/run_main_module.js:17:47\"\r\n ]\r\n}\r\n```","author":{"url":"https://github.com/kitsunde","@type":"Person","name":"kitsunde"},"datePublished":"2022-04-18T19:42:34Z","url":"https://github.com/getsentry/sentry-javascript/issues/4949"}
| 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:7302ae03-ca47-931f-4fa2-e1df5284e469 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B85C:AF577:665C2:8F0EC:6B043134 |
| html-safe-nonce | 8782ff8db2ab6be7c30ff5b5ad5b88f0a2983fd66ace1df1f85f12728def6d8a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCODVDOkFGNTc3OjY2NUMyOjhGMEVDOjZCMDQzMTM0IiwidmlzaXRvcl9pZCI6IjI5NjgwMDkzOTc2MTc1NzAxMDAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b8c24b89aa92206f310aa1bb1b21d39439977c4d672ca5185954168252109711 |
| hovercard-subject-tag | issue:1207383146 |
| 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/4949/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fd9705b8c6485edfc32c4a5e7f9190177781df56b1fe26d814c3a8a7dfd56c2d/getsentry/sentry-javascript/issues/4949 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fd9705b8c6485edfc32c4a5e7f9190177781df56b1fe26d814c3a8a7dfd56c2d/getsentry/sentry-javascript/issues/4949 |
| 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 | kitsunde |
| hostname | github.com |
| expected-hostname | github.com |
| None | b7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e |
| 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 | c3dd496c3da6ea6b77e69c09279d2b81604654f1 |
| 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