Title: The function exported using Object.defineProperty in node_modules cannot be found. · Issue #56304 · nodejs/node · GitHub
Open Graph Title: The function exported using Object.defineProperty in node_modules cannot be found. · Issue #56304 · nodejs/node
X Title: The function exported using Object.defineProperty in node_modules cannot be found. · Issue #56304 · nodejs/node
Description: Version v22.9.0 Platform Darwin mini.local 24.0.0 Darwin Kernel Version 24.0.0: Tue Sep 24 23:36:26 PDT 2024; root:xnu-11215.1.12~1/RELEASE_ARM64_T8103 arm64 Subsystem No response What steps will reproduce the bug? related issue #56286 r...
Open Graph Description: Version v22.9.0 Platform Darwin mini.local 24.0.0 Darwin Kernel Version 24.0.0: Tue Sep 24 23:36:26 PDT 2024; root:xnu-11215.1.12~1/RELEASE_ARM64_T8103 arm64 Subsystem No response What steps will r...
X Description: Version v22.9.0 Platform Darwin mini.local 24.0.0 Darwin Kernel Version 24.0.0: Tue Sep 24 23:36:26 PDT 2024; root:xnu-11215.1.12~1/RELEASE_ARM64_T8103 arm64 Subsystem No response What steps will r...
Opengraph URL: https://github.com/nodejs/node/issues/56304
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"The function exported using Object.defineProperty in node_modules cannot be found.","articleBody":"### Version\n\nv22.9.0\n\n### Platform\n\n```text\nDarwin mini.local 24.0.0 Darwin Kernel Version 24.0.0: Tue Sep 24 23:36:26 PDT 2024; root:xnu-11215.1.12~1/RELEASE_ARM64_T8103 arm64\n```\n\n### Subsystem\n\n_No response_\n\n### What steps will reproduce the bug?\n\nrelated issue #56286\n\nreproduction code [demo_import.zip](https://github.com/user-attachments/files/18181266/demo_import.zip)\n\n\nAdvance declaration: The code inside the current `node_modules` which is in reproduction code, I did not use any package manager(npm/yarn/pnpm) for installation, but rather manually copied and pasted it in, ensuring the exclusion of interference from package management.\n\nSteps:\nDownload and unzip the reproduction code, and directly execute node index.js.\n\nThis is my execution result\n\n\u003cimg width=\"775\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/25727f18-c65a-46a9-8aaf-fa6ee431efbb\" />\n\n\n\n\n\n### How often does it reproduce? Is there a required condition?\n\n100%\n\n### What is the expected behavior? Why is that the expected behavior?\n\n`shouldImport` This function can be directly accessed in the first layer of the module object, rather than only being obtainable in the internal default object.\n\n\n\n### What do you see instead?\n\nshouldImport was lost during the conversion from cjs to esm\n\n### Additional information\n\nI also tried to execute the code using `bun`(1.1.40), and the result was correct.\n\n\n","author":{"url":"https://github.com/shlroland","@type":"Person","name":"shlroland"},"datePublished":"2024-12-18T12:50:00Z","url":"https://github.com/nodejs/node/issues/56304"}
| 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:f5ebc5f2-3e8f-6b1f-e8de-b18c0c60c5a7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 84AA:D410B:12231EB:177562F:6B04F64F |
| html-safe-nonce | bdfab36c5c3476b699ab86ffa70eb95f9582b0862c4a791fbc9effc35c215e00 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NEFBOkQ0MTBCOjEyMjMxRUI6MTc3NTYyRjo2QjA0RjY0RiIsInZpc2l0b3JfaWQiOiIyOTcyMjg2OTAxNTc2NTk1MDIzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 844eddaec3a97d4ad6ef4ea4bd7933ca1f767c4032d44ad357d156968dcf19b1 |
| hovercard-subject-tag | issue:2747734294 |
| 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/56304/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9a0c10cf5fb1f520d84fe63193a06d8602d44315e948a7f57acc3b7e1ef653f7/nodejs/node/issues/56304 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9a0c10cf5fb1f520d84fe63193a06d8602d44315e948a7f57acc3b7e1ef653f7/nodejs/node/issues/56304 |
| og:image:alt | Version v22.9.0 Platform Darwin mini.local 24.0.0 Darwin Kernel Version 24.0.0: Tue Sep 24 23:36:26 PDT 2024; root:xnu-11215.1.12~1/RELEASE_ARM64_T8103 arm64 Subsystem No response What steps will r... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | shlroland |
| hostname | github.com |
| expected-hostname | github.com |
| None | 2c3971d6ab4be607cf9a26ac26ef0a7bfce380ec2ba14642e64028ad07a492b9 |
| 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 | b3f1d45dee14b3f87c64e9017a9c08d011561786 |
| 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