immutable-ext icon indicating copy to clipboard operation
immutable-ext copied to clipboard

Deprecation Warning

Open onosendi opened this issue 3 years ago • 1 comments

~/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)

onosendi avatar Jul 09 '22 02:07 onosendi

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.

FernandoBasso avatar Apr 01 '23 12:04 FernandoBasso