DrBoolean / immutable-ext

fantasyland extensions for immutablejs
ISC License
490 stars 20 forks source link

Deprecation Warning #19

Open onosendi opened 2 years ago

onosendi commented 2 years ago

~/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 commented 1 year ago

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.