Title: Typing `import("").` locks up node repl and gets caught in a error loop · Issue #64523 · nodejs/node · GitHub
Open Graph Title: Typing `import("").` locks up node repl and gets caught in a error loop · Issue #64523 · nodejs/node
X Title: Typing `import("").` locks up node repl and gets caught in a error loop · Issue #64523 · nodejs/node
Description: Version v26.5.0 Platform Darwin Yoru.local 27.0.0 Darwin Kernel Version 27.0.0: Mon Jun 29 21:25:02 PDT 2026; root:xnu-13432.0.50.501.3~1/RELEASE_ARM64_T6041 arm64 Subsystem repl What steps will reproduce the bug? type node to start the ...
Open Graph Description: Version v26.5.0 Platform Darwin Yoru.local 27.0.0 Darwin Kernel Version 27.0.0: Mon Jun 29 21:25:02 PDT 2026; root:xnu-13432.0.50.501.3~1/RELEASE_ARM64_T6041 arm64 Subsystem repl What steps will re...
X Description: Version v26.5.0 Platform Darwin Yoru.local 27.0.0 Darwin Kernel Version 27.0.0: Mon Jun 29 21:25:02 PDT 2026; root:xnu-13432.0.50.501.3~1/RELEASE_ARM64_T6041 arm64 Subsystem repl What steps will re...
Opengraph URL: https://github.com/nodejs/node/issues/64523
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Typing `import(\"\").` locks up node repl and gets caught in a error loop","articleBody":"### Version\n\nv26.5.0\n\n### Platform\n\n```text\nDarwin Yoru.local 27.0.0 Darwin Kernel Version 27.0.0: Mon Jun 29 21:25:02 PDT 2026; root:xnu-13432.0.50.501.3~1/RELEASE_ARM64_T6041 arm64\n```\n\n### Subsystem\n\nrepl\n\n### What steps will reproduce the bug?\n\n1. type `node` to start the node repl\n2. type `import(\"\").` or any non existent module\n3. Watch your repl get locked up and hundreds of module not found errors starts filling up your terminal\n\n### How often does it reproduce? Is there a required condition?\n\nAlways, tested in node v24 and v26, typing or pasting both works\n\n### What is the expected behavior? Why is that the expected behavior?\n\nRepl is trying to import the module to evaluate the object for completion, but the module doesn't exist which causes errors to fill up the terminal\n\nthe error should be properly captured and show up in the predictive area like in this screenshot\n\n\u003cimg width=\"413\" height=\"92\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/a924e36e-5cc5-4000-8d6e-1570c381e0f4\" />\n\n### What do you see instead?\n\nThe console starts filling up with \n```\n> Uncaught:).\nError: Cannot find package '/Users/blank/Projects/BlankParticle/node_modules/index.js' imported from /Users/blank/Projects/BlankParticle/repl\n at legacyMainResolve (node:internal/modules/esm/resolve:202:26)\n at packageResolve (node:internal/modules/esm/resolve:796:12)\n at moduleResolve (node:internal/modules/esm/resolve:873:18)\n at defaultResolve (node:internal/modules/esm/resolve:1006:11)\n at #cachedDefaultResolve (node:internal/modules/esm/loader:708:20)\n at #resolveAndMaybeBlockOnLoaderThread (node:internal/modules/esm/loader:728:38)\n at ModuleLoader.resolveSync (node:internal/modules/esm/loader:766:56)\n at #resolve (node:internal/modules/esm/loader:690:17)\n at ModuleLoader.getOrCreateModuleJob (node:internal/modules/esm/loader:610:35) {\n code: 'ERR_MODULE_NOT_FOUND'\n}\n```\nand it locks up the entire repl, ctrl C works to kill the repl, but sometimes you need to kill the process from another console\n\nhttps://github.com/user-attachments/assets/db6d885c-54a0-43ea-bcf7-9fafa530b8d7\n\n### Additional information\n\n_No response_","author":{"url":"https://github.com/BlankParticle","@type":"Person","name":"BlankParticle"},"datePublished":"2026-07-15T17:24:28Z","url":"https://github.com/nodejs/node/issues/64523"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| 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:3d3d6a8b-08a9-e166-cbce-f222a56c4a95 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BEF0:39BC20:726324:9914C7:6AED244D |
| html-safe-nonce | b0daca574e8264ad630c784c8edb53fecfbaf5a026c951083cb0bd194882f735 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRUYwOjM5QkMyMDo3MjYzMjQ6OTkxNEM3OjZBRUQyNDREIiwidmlzaXRvcl9pZCI6IjM2MjI2NzYzNTkwMDg4MjIzNDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f522cc9bfcd8ee6dbeb40dbf58e4bf3e843733ca33e0a046280827c81870b433 |
| hovercard-subject-tag | issue:4894850535 |
| 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/64523/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a70e8d706385c5a4a3e738ed5b529a1dfab6568ac0db64cc4a58906448aaeb65/nodejs/node/issues/64523 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a70e8d706385c5a4a3e738ed5b529a1dfab6568ac0db64cc4a58906448aaeb65/nodejs/node/issues/64523 |
| og:image:alt | Version v26.5.0 Platform Darwin Yoru.local 27.0.0 Darwin Kernel Version 27.0.0: Mon Jun 29 21:25:02 PDT 2026; root:xnu-13432.0.50.501.3~1/RELEASE_ARM64_T6041 arm64 Subsystem repl What steps will re... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | BlankParticle |
| hostname | github.com |
| expected-hostname | github.com |
| None | e3e0f7f63e50c6fe879198a93a0a023a648ecc0a5e9bc3b5e033ac57172237e6 |
| 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 | 707a24b346ac8a82878b9c084efaa38a997660cb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width