Title: Request: Backport loader fix to v22.x · Issue #61801 · nodejs/node · GitHub
Open Graph Title: Request: Backport loader fix to v22.x · Issue #61801 · nodejs/node
X Title: Request: Backport loader fix to v22.x · Issue #61801 · nodejs/node
Description: Version 22.x Platform macOS 26.2 (arm64) Node.js: v22.22.0 Package manager: npm 10.9.4 Subsystem N/A What steps will reproduce the bug? I would like to request a backport of the fix that resolved an issue in v24.11.1 to the v22.x release...
Open Graph Description: Version 22.x Platform macOS 26.2 (arm64) Node.js: v22.22.0 Package manager: npm 10.9.4 Subsystem N/A What steps will reproduce the bug? I would like to request a backport of the fix that resolved a...
X Description: Version 22.x Platform macOS 26.2 (arm64) Node.js: v22.22.0 Package manager: npm 10.9.4 Subsystem N/A What steps will reproduce the bug? I would like to request a backport of the fix that resolved a...
Opengraph URL: https://github.com/nodejs/node/issues/61801
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Request: Backport loader fix to v22.x","articleBody":"### Version\n\n22.x\n\n### Platform\n\n```text\nmacOS 26.2 (arm64)\nNode.js: v22.22.0\nPackage manager: npm 10.9.4\n```\n\n### Subsystem\n\nN/A\n\n### What steps will reproduce the bug?\n\nI would like to request a backport of the fix that resolved an issue in v24.11.1 to the v22.x release line.\n\nWe are currently experiencing an issue that was fixed in v24.11.1. However, our project is still supporting v22.x and would benefit from having this fix backported.\n\n\n```js\nimport module from 'node:module'\n\nmodule.registerHooks({\n load(url, context, defaultLoad) {\n return defaultLoad(url, context)\n },\n})\n\nawait import('@intlify/unplugin-vue-i18n/vite')\n```\n\n\n### How often does it reproduce? Is there a required condition?\n\nNode.js \u003c v24.11.1\n\n### What is the expected behavior? Why is that the expected behavior?\n\nNo errors\n\n### What do you see instead?\n\n```\nnode:internal/modules/esm/translators:152\n return cjsCache.get(job.url).exports;\n ^\n\nTypeError: Cannot read properties of undefined (reading 'exports')\n at require (node:internal/modules/esm/translators:152:33)\n at Object.getPkg (/private/tmp/tsdown_issue_example/node_modules/jsonc-eslint-parser/lib/parser/visitor-keys.js:40:28)\n at loadNewest (/private/tmp/tsdown_issue_example/node_modules/jsonc-eslint-parser/lib/parser/modules/require-utils.js:73:26)\n at getVisitorKeys (/private/tmp/tsdown_issue_example/node_modules/jsonc-eslint-parser/lib/parser/visitor-keys.js:21:51)\n at Object.\u003canonymous\u003e (/private/tmp/tsdown_issue_example/node_modules/jsonc-eslint-parser/lib/index.js:40:57)\n at loadCJSModule (node:internal/modules/esm/translators:166:3)\n at ModuleWrap.\u003canonymous\u003e (node:internal/modules/esm/translators:202:7)\n at ModuleJob.run (node:internal/modules/esm/module_job:343:25)\n at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:665:26)\n at async file:///private/tmp/tsdown_issue_example/start.js:10:1\n```\n\n### Additional information\n\n### Potentially Related PRs\n\nBased on my investigation, the fix may have been introduced in one or both of these PRs:\n\n- https://github.com/nodejs/node/pull/60278\n- https://github.com/nodejs/node/pull/59929\n\ndownstream issue: https://github.com/rolldown/tsdown/issues/766\n","author":{"url":"https://github.com/sxzz","@type":"Person","name":"sxzz"},"datePublished":"2026-02-13T13:09:30.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/61801/node/issues/61801"}
| 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:03cedd32-b0e6-1950-4fe8-75655bc8e64f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A938:1756CC:A79063:E01C2D:6A4C3DDD |
| html-safe-nonce | a940c60ece2c02880322ee8c2d8c43c16a0c206fde87889efeedccb03ebc8df6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOTM4OjE3NTZDQzpBNzkwNjM6RTAxQzJEOjZBNEMzREREIiwidmlzaXRvcl9pZCI6Ijc4MjM5NzA3ODc2Mzk3MDUwNTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 44d12d247cd7893a5d2daf72ac64e6f936277a87a9f536eeeec533bf9fb89900 |
| hovercard-subject-tag | issue:3937121887 |
| 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/61801/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fd7f524d47fe0eafb803a0008a8d8262214aa738c3d1b9bb89906a5c34c17f4a/nodejs/node/issues/61801 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fd7f524d47fe0eafb803a0008a8d8262214aa738c3d1b9bb89906a5c34c17f4a/nodejs/node/issues/61801 |
| og:image:alt | Version 22.x Platform macOS 26.2 (arm64) Node.js: v22.22.0 Package manager: npm 10.9.4 Subsystem N/A What steps will reproduce the bug? I would like to request a backport of the fix that resolved a... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sxzz |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1b6b16d04026f131a36d57e3b01d0f4d26a51800edf48bf5ed0256e0ac905511 |
| 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 | d11deab54ce15bac57bda991cc63805976812c11 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width