immutable-ext
immutable-ext copied to clipboard
Deprecation Warning
~/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.
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.