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 because of like of module type in package.json #97

Closed
ZipBrandon opened this issue Jan 15, 2025 · 1 comment

Comments

@ZipBrandon
Copy link

I noticed that "type": "module" was removed in v2. I think it should be there. I receive this warning otherwise:

(node:61158) [MODULE_TYPELESS_PACKAGE_JSON] Warning: Module type of file:///Users/lazerskates/DEVELOPMENT/zipdeal/zipdeal-app/frontend/node_modules/use-file-picker/dist/index.esm.js is not specified and it doesn't parse as CommonJS. Reparsing as ES module because module syntax was detected. This incurs a performance overhead. To eliminate this warning, add "type": "module" to /Users/lazerskates/DEVELOPMENT/zipdeal/zipdeal-app/frontend/node_modules/use-file-picker/package.json.

@MrKampla
Copy link
Collaborator

Good catch, thanks for reporting that.

I've created a PR #98 and published a canary version of the package on NPM. If it doesn't create any issues in commo.js based projects, we'll publish it under the main release channel.
You can use the fixed version before we release it, by installing a version: 2.1.3-canary.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

2 participants