Title: bug: yargs issue reappearing in 26.x.x · Issue #63694 · nodejs/node · GitHub
Open Graph Title: bug: yargs issue reappearing in 26.x.x · Issue #63694 · nodejs/node
X Title: bug: yargs issue reappearing in 26.x.x · Issue #63694 · nodejs/node
Description: Version 26.2.0 Platform Linux P3 6.8.0-117-generic #117~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu May 7 22:17:46 UTC x86_64 x86_64 x86_64 GNU/Linux Subsystem No response What steps will reproduce the bug? Loading a module which depends on y...
Open Graph Description: Version 26.2.0 Platform Linux P3 6.8.0-117-generic #117~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu May 7 22:17:46 UTC x86_64 x86_64 x86_64 GNU/Linux Subsystem No response What steps will reproduce the ...
X Description: Version 26.2.0 Platform Linux P3 6.8.0-117-generic #117~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu May 7 22:17:46 UTC x86_64 x86_64 x86_64 GNU/Linux Subsystem No response What steps will reproduce the ...
Opengraph URL: https://github.com/nodejs/node/issues/63694
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"bug: yargs issue reappearing in 26.x.x","articleBody":"### Version\n\n26.2.0\n\n### Platform\n\n```text\nLinux P3 6.8.0-117-generic #117~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu May 7 22:17:46 UTC x86_64 x86_64 x86_64 GNU/Linux\n```\n\n### Subsystem\n\n_No response_\n\n### What steps will reproduce the bug?\n\nLoading a module which depends on yargs\n\n### How often does it reproduce? Is there a required condition?\n\nEvery time on 26.2.0, 26.1.0 and 26.0.0 \n\nWorks fine on 24.16.0\n\n### What is the expected behavior? Why is that the expected behavior?\n\nLoad as normal\n\n### What do you see instead?\n\n```\nReferenceError: require is not defined in ES module scope, you can use import instead\n at file:///home/...../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/yargs:3:69\n at ModuleJobSync.runSync (node:internal/modules/esm/module_job:543:37)\n at ModuleLoader.importSyncForRequire (node:internal/modules/esm/loader:365:47)\n at loadESMFromCJS (node:internal/modules/cjs/loader:1692:24)\n at Module._compile (node:internal/modules/cjs/loader:1855:5)\n at Object..js (node:internal/modules/cjs/loader:2013:10)\n at Module.load (node:internal/modules/cjs/loader:1596:32)\n at Module._load (node:internal/modules/cjs/loader:1398:12)\n at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)\n at Module.require (node:internal/modules/cjs/loader:1619:12)\n```\n\n### Additional information\n\nPossibly the same issue as https://github.com/nodejs/node/issues/61971 which appears to have been fixed in node 25","author":{"url":"https://github.com/darcyrush","@type":"Person","name":"darcyrush"},"datePublished":"2026-06-01T11:49:01.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/63694/node/issues/63694"}
| 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:bf24c5d7-4cae-ef7b-f1dd-38784196a087 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A800:343EA2:594F4E:81C81A:6A4D13F9 |
| html-safe-nonce | 5e09b36637fe627c2baccf2c4c3ebfcce0dc0e48942e235aa5e0fee86ddbe6b7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBODAwOjM0M0VBMjo1OTRGNEU6ODFDODFBOjZBNEQxM0Y5IiwidmlzaXRvcl9pZCI6IjU1OTEwNzM0MjQ1NDI5NzU5MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 465bd78de4be3c3a37ae0a2932a6e99b355a4abd9b1c7292476a5f0f348b1e5f |
| hovercard-subject-tag | issue:4562824905 |
| 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/nodejs/node/63694/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ae8102ec2ffbd508b82a57a1cee5c0e2af62141b839c812f36fc52fa35c41e9a/nodejs/node/issues/63694 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ae8102ec2ffbd508b82a57a1cee5c0e2af62141b839c812f36fc52fa35c41e9a/nodejs/node/issues/63694 |
| og:image:alt | Version 26.2.0 Platform Linux P3 6.8.0-117-generic #117~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu May 7 22:17:46 UTC x86_64 x86_64 x86_64 GNU/Linux Subsystem No response What steps will reproduce the ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | darcyrush |
| hostname | github.com |
| expected-hostname | github.com |
| None | f02420044fa3730a0607f4a52546bdd73f5ae60187ef57d284ecb6d7f3f1d880 |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| 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 | f0b6a62c1f0be1086cb0b5b077b82cebe520eb42 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width