Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MODULE_TYPELESS_PACKAGE_JSON warning due to missing "type": "module" #193

Open
clemeth opened this issue Jan 16, 2025 · 0 comments
Open

Comments

@clemeth
Copy link

clemeth commented Jan 16, 2025

When using the package, Node.js emits the following warning:

[MODULE_TYPELESS_PACKAGE_JSON] Warning: file:///[...]/node_modules/use-debounce/dist/index.module.js parsed as an ES module because module syntax was detected; to avoid the performance penalty of syntax detection, add "type": "module" to /[...]/node_modules/use-debounce/package.json

A "type": "module" declaration was added to package.json in 5a68494, but was subsequently removed in 3556a91.

It should be added back to avoid this warning.

Versions

use-debounce: 10.0.4
node: 22.8.0
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

No branches or pull requests

1 participant