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

Deprecation Warning #19

Open
onosendi opened this issue Jul 9, 2022 · 1 comment
Open

Deprecation Warning #19

onosendi opened this issue Jul 9, 2022 · 1 comment

Comments

@onosendi
Copy link

onosendi commented Jul 9, 2022

~/repos/sandbox/javascript/src [master] % node --trace-deprecation script.js
(node:59243) [DEP0128] DeprecationWarning: Invalid 'main' field in '/Users/onosendi/repos/sandbox/javascript/node_modules/immutable-ext/package.json' of 'dist/index.js'. Please either fix that or report it to the module author
at tryPackage (node:internal/modules/cjs/loader:364:15)
at Function.Module._findPath (node:internal/modules/cjs/loader:566:18)
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:919:27)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object. (/Users/onosendi/repos/sandbox/javascript/src/script.js:1:18)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
at Module.load (node:internal/modules/cjs/loader:981:32)

@FernandoBasso
Copy link

If we open ./node_modules/immutable-ext/package.json and change main to point to index.js instead of dist/index.js it stops the warning.

The ideal would be to publish a new version of the package with that fix, but it at least fixes it for us locally.

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