Title: Imports and requires may not be using Node Loaders/Registration for ESM · Issue #120 · aws/aws-lambda-nodejs-runtime-interface-client · GitHub
Open Graph Title: Imports and requires may not be using Node Loaders/Registration for ESM · Issue #120 · aws/aws-lambda-nodejs-runtime-interface-client
X Title: Imports and requires may not be using Node Loaders/Registration for ESM · Issue #120 · aws/aws-lambda-nodejs-runtime-interface-client
Description: The Yarn PNP mechanism uses loaders and/or registration for CJS and ESM support. Presently using -r .pnp.cjs works appropriately in AWS SAM but using --loader runs into a host of issues as detailed in: yarnpkg/berry#6604 I'm not clear wh...
Open Graph Description: The Yarn PNP mechanism uses loaders and/or registration for CJS and ESM support. Presently using -r .pnp.cjs works appropriately in AWS SAM but using --loader runs into a host of issues as detailed...
X Description: The Yarn PNP mechanism uses loaders and/or registration for CJS and ESM support. Presently using -r .pnp.cjs works appropriately in AWS SAM but using --loader runs into a host of issues as detailed...
Opengraph URL: https://github.com/aws/aws-lambda-nodejs-runtime-interface-client/issues/120
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Imports and requires may not be using Node Loaders/Registration for ESM","articleBody":"The Yarn PNP mechanism uses loaders and/or registration for CJS and ESM support.\r\n\r\nPresently using `-r .pnp.cjs` works appropriately in AWS SAM but using `--loader` runs into a host of issues as detailed in:\r\n\r\nhttps://github.com/yarnpkg/berry/issues/6604\r\n\r\n\r\nI'm not clear why the two are not working together, as they work in other contexts - but in the AWS SAM `index.mjs` it seems that the tryRequire path goes through a route where `pnp.setup();` is unable to monkey patch calls once it is working within the CJS loader by route of the ESM loader.\r\n","author":{"url":"https://github.com/Downchuck","@type":"Person","name":"Downchuck"},"datePublished":"2024-11-20T02:33:52.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/120/aws-lambda-nodejs-runtime-interface-client/issues/120"}
| 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:4298beba-e5af-e7fd-5d14-78b108a6d191 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D05E:DD39B:193CEE0:23FA53D:6A635D9D |
| html-safe-nonce | ab714581ba53c50c6a6344123d45b237a60877f2d51674ca1db4903233ba77b7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMDVFOkREMzlCOjE5M0NFRTA6MjNGQTUzRDo2QTYzNUQ5RCIsInZpc2l0b3JfaWQiOiIyNjcyODg1MTUyMjY4NjM5NjQ1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | b870279a6d61750545318c0c8382438d1adc894b501b818faaae4e7389dedf32 |
| hovercard-subject-tag | issue:2674113754 |
| 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/aws/aws-lambda-nodejs-runtime-interface-client/120/issue_layout |
| twitter:image | https://opengraph.githubassets.com/146f00e298d0ad8c86b9b8b669794336b66507ccaab0dabae11af8533164a819/aws/aws-lambda-nodejs-runtime-interface-client/issues/120 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/146f00e298d0ad8c86b9b8b669794336b66507ccaab0dabae11af8533164a819/aws/aws-lambda-nodejs-runtime-interface-client/issues/120 |
| og:image:alt | The Yarn PNP mechanism uses loaders and/or registration for CJS and ESM support. Presently using -r .pnp.cjs works appropriately in AWS SAM but using --loader runs into a host of issues as detailed... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Downchuck |
| hostname | github.com |
| expected-hostname | github.com |
| None | 59e55daad7174ca59d63c6974d58276ccb5477442e550bebb3c035e1bef11c94 |
| turbo-cache-control | no-preview |
| go-import | github.com/aws/aws-lambda-nodejs-runtime-interface-client git https://github.com/aws/aws-lambda-nodejs-runtime-interface-client.git |
| octolytics-dimension-user_id | 2232217 |
| octolytics-dimension-user_login | aws |
| octolytics-dimension-repository_id | 291796346 |
| octolytics-dimension-repository_nwo | aws/aws-lambda-nodejs-runtime-interface-client |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 291796346 |
| octolytics-dimension-repository_network_root_nwo | aws/aws-lambda-nodejs-runtime-interface-client |
| 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 | 71b1218de2f2ab29c4d5ce72568e68e2c56044c6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width