Node 17, deprecation `main field` warning package.json
TarikGul opened this issue · 6 comments
rel: @substrate/api-sidecar#771
The warning was found when running substrate-api-sidecar with @polkadot/apps-config@0.98.2-94
.
2021-11-23 12:07:47 error: (node:20453) [DEP0128] DeprecationWarning: Invalid 'main' field in '/Users/aggron/dev/parity/substrate-api-sidecar/node_modules/@subsocial/utils/package.json' of 'build/index.js'. Please either fix that or report it to the module author
Sidecar: v11.3.1
Node: v17 and up.
Being that Node v16 is the Active LTS
right now, and 17 is Current
I don't think it's a major problem, but I thought it was worth documenting.
Any update on this issue, is this repo actively maintained?
Any update on this issue, is this repo actively maintained?
HI. Yes. Which version of @subsocial/utils are you using?
Current latest version subsocial SDK libs: 0.6.5
We fixed warning w/ Invalid 'main' field
The current version we have as a peer dependency of @polkadot/apps-config@0.98.2-162
is as follows:
└─ @subsocial/types@npm:0.6.5-dev.6
└─ @subsocial/utils@npm:0.6.5-dev.7 (via npm:^0.6.5-dev.6)
I am guessing it just needs to be updated in apps-config
?
Ah ok, I made PR to apps-config, wait :)
Thanks again for updating that, the issue is fixed on our end. Closing.