René's URL Explorer Experiment


Title: module: throw error for ESM syntax in explicit commonjs entry by heathdutton · Pull Request #61171 · nodejs/node · GitHub

Open Graph Title: module: throw error for ESM syntax in explicit commonjs entry by heathdutton · Pull Request #61171 · nodejs/node

X Title: module: throw error for ESM syntax in explicit commonjs entry by heathdutton · Pull Request #61171 · nodejs/node

Description: Node.js JavaScript runtime ✨🐢🚀✨. Contribute to nodejs/node development by creating an account on GitHub.

Open Graph Description: When a main entry point contains ESM syntax but is in a package with "type": "commonjs" in package.json, the module would silently exit with code 0 without executing or showing ...

X Description: When a main entry point contains ESM syntax but is in a package with "type": "commonjs" in package.json, the module would silently exit with code 0 without execu...

Opengraph URL: https://github.com/nodejs/node/pull/61171

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:20efbea7-37bf-0dba-d42f-fcf382de2f4f
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA63A:8DE5B:AEE713:EB8488:6A4C5709
html-safe-noncefee304a44793f51e892c400f16f7975be7a979daec4963bb461a6d5ca9d797c5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNjNBOjhERTVCOkFFRTcxMzpFQjg0ODg6NkE0QzU3MDkiLCJ2aXNpdG9yX2lkIjoiNjk4NzY3NjIxNzcxNDE2OTYwOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac717f8b4bfb4ef5c1643c85035bc9eccfa5f0529b47f0bbba0f323062e4bd1dbf
hovercard-subject-tagpull_request:3129503149
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/nodejs/node/61171/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/79a78f0261a068ed0126f51db8fe5458924a055b13ad363bce029a7087f91c0e/nodejs/node/pull/61171
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/79a78f0261a068ed0126f51db8fe5458924a055b13ad363bce029a7087f91c0e/nodejs/node/pull/61171
og:image:altWhen a main entry point contains ESM syntax but is in a package with "type": "commonjs" in package.json, the module would silently exit with code 0 without executing or showing ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameheathdutton
hostnamegithub.com
expected-hostnamegithub.com
None3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c
turbo-cache-controlno-cache
go-importgithub.com/nodejs/node git https://github.com/nodejs/node.git
octolytics-dimension-user_id9950313
octolytics-dimension-user_loginnodejs
octolytics-dimension-repository_id27193779
octolytics-dimension-repository_nwonodejs/node
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id27193779
octolytics-dimension-repository_network_root_nwonodejs/node
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release14099438da5379150f15a2892474c7c7e6c0e55e
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/nodejs/node/pull/61171#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fpull%2F61171
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fpull%2F61171
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=nodejs%2Fnode
Reloadhttps://github.com/nodejs/node/pull/61171
Reloadhttps://github.com/nodejs/node/pull/61171
Reloadhttps://github.com/nodejs/node/pull/61171
Please reload this pagehttps://github.com/nodejs/node/pull/61171
nodejs https://github.com/nodejs
nodehttps://github.com/nodejs/node
Please reload this pagehttps://github.com/nodejs/node/pull/61171
Notifications https://github.com/login?return_to=%2Fnodejs%2Fnode
Fork 36k https://github.com/login?return_to=%2Fnodejs%2Fnode
Star 118k https://github.com/login?return_to=%2Fnodejs%2Fnode
Code https://github.com/nodejs/node
Issues 1.4k https://github.com/nodejs/node/issues
Pull requests 964 https://github.com/nodejs/node/pulls
Actions https://github.com/nodejs/node/actions
Projects https://github.com/nodejs/node/projects
Security and quality 0 https://github.com/nodejs/node/security
Insights https://github.com/nodejs/node/pulse
Code https://github.com/nodejs/node
Issues https://github.com/nodejs/node/issues
Pull requests https://github.com/nodejs/node/pulls
Actions https://github.com/nodejs/node/actions
Projects https://github.com/nodejs/node/projects
Security and quality https://github.com/nodejs/node/security
Insights https://github.com/nodejs/node/pulse
heathduttonhttps://github.com/heathdutton
nodejs:mainhttps://github.com/nodejs/node/tree/main
heathdutton:fix/module-esm-silent-failure-61104https://github.com/heathdutton/node/tree/fix/module-esm-silent-failure-61104
Conversationhttps://github.com/nodejs/node/pull/61171
Commits1 (1)https://github.com/nodejs/node/pull/61171/commits
Checkshttps://github.com/nodejs/node/pull/61171/checks
Files changedhttps://github.com/nodejs/node/pull/61171/files
module: throw error for ESM syntax in explicit commonjs entryhttps://github.com/nodejs/node/pull/61171#top
heathduttonhttps://github.com/heathdutton
nodejs:mainhttps://github.com/nodejs/node/tree/main
heathdutton:fix/module-esm-silent-failure-61104https://github.com/heathdutton/node/tree/fix/module-esm-silent-failure-61104
https://github.com/heathdutton
heathduttonhttps://github.com/heathdutton
Dec 25, 2025https://github.com/nodejs/node/pull/61171#issue-3761383215
Please reload this pagehttps://github.com/nodejs/node/pull/61171
#61104https://github.com/nodejs/node/issues/61104
Please reload this pagehttps://github.com/nodejs/node/pull/61171
https://github.com/nodejs-github-bot
nodejs-github-bothttps://github.com/nodejs-github-bot
Dec 25, 2025https://github.com/nodejs/node/pull/61171#issuecomment-3690853627
Please reload this pagehttps://github.com/nodejs/node/pull/61171
https://github.com/nodejs-github-bot
nodejs-github-bothttps://github.com/nodejs-github-bot
module https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3Amodule
needs-ci https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3Aneeds-ci
Dec 25, 2025https://github.com/nodejs/node/pull/61171#event-21747808676
https://github.com/joyeecheung
joyeecheunghttps://github.com/joyeecheung
Dec 26, 2025https://github.com/nodejs/node/pull/61171#issuecomment-3692673001
Please reload this pagehttps://github.com/nodejs/node/pull/61171
https://github.com/heathdutton
heathduttonhttps://github.com/heathdutton
December 26, 2025 15:42https://github.com/nodejs/node/pull/61171#event-21760175813
https://github.com/heathdutton
heathduttonhttps://github.com/heathdutton
force-pushedhttps://github.com/nodejs/node/compare/fff222de1ba47e700f6a5c5184c1d4ce4cf9ccb2..6ed6c3fa0d85e8f34d9ee036c7611387881793c2
fff222dhttps://github.com/nodejs/node/commit/fff222de1ba47e700f6a5c5184c1d4ce4cf9ccb2
6ed6c3fhttps://github.com/nodejs/node/commit/6ed6c3fa0d85e8f34d9ee036c7611387881793c2
Compare https://github.com/nodejs/node/compare/fff222de1ba47e700f6a5c5184c1d4ce4cf9ccb2..6ed6c3fa0d85e8f34d9ee036c7611387881793c2
December 30, 2025 03:57https://github.com/nodejs/node/pull/61171#event-21787395551
https://github.com/heathdutton
heathduttonhttps://github.com/heathdutton
December 30, 2025 04:00https://github.com/nodejs/node/pull/61171#event-21787409732
https://github.com/heathdutton
heathduttonhttps://github.com/heathdutton
Dec 30, 2025https://github.com/nodejs/node/pull/61171#issuecomment-3698246231
@joyeecheunghttps://github.com/joyeecheung
Please reload this pagehttps://github.com/nodejs/node/pull/61171
https://github.com/joyeecheung
joyeecheunghttps://github.com/joyeecheung
Jan 4, 2026 https://github.com/nodejs/node/pull/61171#pullrequestreview-3625160852
View reviewed changes https://github.com/nodejs/node/pull/61171/files
lib/internal/modules/cjs/loader.jshttps://github.com/nodejs/node/pull/61171/files#diff-5b5902273122e094ff474fda358605ffa45a4a58b51cd0bf4c1acb93779df142
Please reload this pagehttps://github.com/nodejs/node/pull/61171
https://github.com/heathdutton
heathduttonhttps://github.com/heathdutton
January 4, 2026 20:32https://github.com/nodejs/node/pull/61171#event-21843169271
https://github.com/joyeecheung
joyeecheunghttps://github.com/joyeecheung
Jan 4, 2026 https://github.com/nodejs/node/pull/61171#pullrequestreview-3625161317
View reviewed changes https://github.com/nodejs/node/pull/61171/files
test/es-module/test-esm-syntax-in-cjs-main.jshttps://github.com/nodejs/node/pull/61171/files#diff-5f383875f7ac43c6832c74d70ab0bc29312e099f1771b1d094adab77cd1c7743
Please reload this pagehttps://github.com/nodejs/node/pull/61171
test/es-module/test-esm-syntax-in-cjs-main.jshttps://github.com/nodejs/node/pull/61171/files#diff-5f383875f7ac43c6832c74d70ab0bc29312e099f1771b1d094adab77cd1c7743
Please reload this pagehttps://github.com/nodejs/node/pull/61171
test/es-module/test-esm-syntax-in-cjs-main.jshttps://github.com/nodejs/node/pull/61171/files#diff-5f383875f7ac43c6832c74d70ab0bc29312e099f1771b1d094adab77cd1c7743
Please reload this pagehttps://github.com/nodejs/node/pull/61171
https://github.com/heathdutton
module: fix silent failure for ESM syntax in explicit commonjs entryhttps://github.com/nodejs/node/pull/61171/commits/19e940d17c578ed30ea988bf6f8d2941cdd30214
19e940dhttps://github.com/nodejs/node/pull/61171/commits/19e940d17c578ed30ea988bf6f8d2941cdd30214
nodejs#61104https://github.com/nodejs/node/issues/61104
https://github.com/heathdutton
heathduttonhttps://github.com/heathdutton
force-pushedhttps://github.com/nodejs/node/compare/6ed6c3fa0d85e8f34d9ee036c7611387881793c2..19e940d17c578ed30ea988bf6f8d2941cdd30214
6ed6c3fhttps://github.com/nodejs/node/commit/6ed6c3fa0d85e8f34d9ee036c7611387881793c2
19e940dhttps://github.com/nodejs/node/commit/19e940d17c578ed30ea988bf6f8d2941cdd30214
Compare https://github.com/nodejs/node/compare/6ed6c3fa0d85e8f34d9ee036c7611387881793c2..19e940d17c578ed30ea988bf6f8d2941cdd30214
January 5, 2026 02:57https://github.com/nodejs/node/pull/61171#event-21845276984
https://github.com/heathdutton
heathduttonhttps://github.com/heathdutton
January 5, 2026 04:26https://github.com/nodejs/node/pull/61171#event-21845990345
https://github.com/ljharb
ljharbhttps://github.com/ljharb
Jan 5, 2026https://github.com/nodejs/node/pull/61171#issuecomment-3711355113
Please reload this pagehttps://github.com/nodejs/node/pull/61171
https://github.com/joyeecheung
joyeecheunghttps://github.com/joyeecheung
Jan 5, 2026https://github.com/nodejs/node/pull/61171#issuecomment-3711500841
Please reload this pagehttps://github.com/nodejs/node/pull/61171
https://github.com/ljharb
ljharbhttps://github.com/ljharb
Jan 5, 2026https://github.com/nodejs/node/pull/61171#issuecomment-3711522621
Please reload this pagehttps://github.com/nodejs/node/pull/61171
https://github.com/joyeecheung
joyeecheunghttps://github.com/joyeecheung
Jan 5, 2026 https://github.com/nodejs/node/pull/61171#pullrequestreview-3627927249
View reviewed changes https://github.com/nodejs/node/pull/61171/files/19e940d17c578ed30ea988bf6f8d2941cdd30214
test/fixtures/es-modules/package-type-commonjs-esm-syntax/esm-script.jshttps://github.com/nodejs/node/pull/61171/files/19e940d17c578ed30ea988bf6f8d2941cdd30214#diff-1040b625467bf2c0305ea3f4f59283866060cfafecbd431d356f1875064d275e
joyeecheunghttps://github.com/joyeecheung
Jan 5, 2026https://github.com/nodejs/node/pull/61171#discussion_r2662383527
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
#61104https://github.com/nodejs/node/issues/61104
Please reload this pagehttps://github.com/nodejs/node/pull/61171
https://github.com/joyeecheung
joyeecheunghttps://github.com/joyeecheung
Jan 5, 2026 https://github.com/nodejs/node/pull/61171#pullrequestreview-3627961533
View reviewed changes https://github.com/nodejs/node/pull/61171/files/19e940d17c578ed30ea988bf6f8d2941cdd30214
lib/internal/modules/cjs/loader.jshttps://github.com/nodejs/node/pull/61171/files/19e940d17c578ed30ea988bf6f8d2941cdd30214#diff-5b5902273122e094ff474fda358605ffa45a4a58b51cd0bf4c1acb93779df142
joyeecheunghttps://github.com/joyeecheung
Jan 5, 2026https://github.com/nodejs/node/pull/61171#discussion_r2662412231
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/nodejs/node/pull/61171
https://github.com/inoway46
inoway46https://github.com/inoway46
Jan 31, 2026https://github.com/nodejs/node/pull/61171#issuecomment-3828767768
#61171https://github.com/nodejs/node/pull/61171
#61600https://github.com/nodejs/node/pull/61600
Please reload this pagehttps://github.com/nodejs/node/pull/61171
https://github.com/inoway46
inoway46https://github.com/inoway46
Jan 31, 2026 https://github.com/nodejs/node/pull/61171#ref-pullrequest-3879417093
module: fix extensionless entry with explicit type=commonjs #61600 https://github.com/nodejs/node/pull/61600
https://github.com/heathdutton
heathduttonhttps://github.com/heathdutton
Jan 31, 2026https://github.com/nodejs/node/pull/61171#issuecomment-3829114836
Please reload this pagehttps://github.com/nodejs/node/pull/61171
@inoway46https://github.com/inoway46
Please reload this pagehttps://github.com/nodejs/node/pull/61171
https://github.com/inoway46
inoway46https://github.com/inoway46
Feb 1, 2026https://github.com/nodejs/node/pull/61171#issuecomment-3830193879
#61600https://github.com/nodejs/node/pull/61600
Please reload this pagehttps://github.com/nodejs/node/pull/61171
https://github.com/heathdutton
heathduttonhttps://github.com/heathdutton
Feb 1, 2026https://github.com/nodejs/node/pull/61171#event-22437916325
https://github.co/hiddenchars
https://github.com/nodejs/node/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fpull%2F61171
https://github.com/joyeecheung
joyeecheung https://github.com/joyeecheung
https://github.com/nodejs/node/pull/61171/files/19e940d17c578ed30ea988bf6f8d2941cdd30214
module https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3Amodule
needs-ci https://github.com/nodejs/node/issues?q=state%3Aopen%20label%3Aneeds-ci
With "type": "commonjs", #!/usr/bin/env node file does not execute but returns success and no error messages when the file is ESM https://github.com/nodejs/node/issues/61104
Please reload this pagehttps://github.com/nodejs/node/pull/61171
https://github.com/heathdutton
https://github.com/nodejs-github-bot
https://github.com/joyeecheung
https://github.com/ljharb
https://github.com/inoway46
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.