Skip to content

fix: use yargs main entry for node 26 compatibility#1

Merged
yjp20 merged 1 commit into
mainfrom
yjp/node26-yargs-fix
May 18, 2026
Merged

fix: use yargs main entry for node 26 compatibility#1
yjp20 merged 1 commit into
mainfrom
yjp/node26-yargs-fix

Conversation

@yjp20
Copy link
Copy Markdown
Member

@yjp20 yjp20 commented May 18, 2026

The yargs/yargs subpath resolves to an extensionless file in a type: module package, which Node 26 loads as ESM. That file uses require() and throws. The yargs main entry is real CommonJS and its default export is still the callable factory.

The yargs/yargs subpath resolves to an extensionless file in a
type: module package, which Node 26 loads as ESM. That file uses
require() and throws. The yargs main entry is real CommonJS and
its default export is still the callable factory.
@yjp20 yjp20 merged commit fa2b6da into main May 18, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant