-
Notifications
You must be signed in to change notification settings - Fork 5
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
[NodeJs16] DeprecationWarning: Invalid 'main' field #7
Comments
Also seeing this. |
Fixed by zhouhanseng@d5021ac. [email protected] released. PS. Could you please help me to close this issue, since I lost my 2 factor authentic token, this project has moved to https://github.com/zhouhanseng/objectorarray |
Same here
|
Still not fixed |
same here |
@zhouhanseng it is still NOT fixed, 1.0.5 here and getting: (node:423) [DEP0128] DeprecationWarning: Invalid 'main' field in '/home/almothafar/.npm-global/lib/node_modules/cordova/node_modules/objectorarray/package.json' of 'dist/index.js'. Please either fix that or report it to the module a
uthor
(Use `node --trace-deprecation ...` to show where the warning was created) Also why we can't open any issue in your new repo? |
(node:1632) [DEP0128] DeprecationWarning: Invalid 'main' field in 'D:\satyamg\react-tsx-electron\node_modules\eslint-config-airbnb-typescript\package.json' of 'dist/eslint-config-airbnb-typescript.js'. Please either how to solve this |
Just follow the path to the broken package.json and change from |
Go to change |
Thanks @carmcha. Not getting deprecate warning message now. |
Is there any fix for this An error occurred during the push operation: Unexpected token 'export' @carmcha |
|
This fixed it for me.. Thank you @carmcha !!!! |
same, getting this error in Cordova iOS app fixed by changing /dist/index.js to just index.js in package.json of this package |
Modules that have an invalid main entry (e.g., ./does-not-exist.js) and also have an index.js file in the top level directory will resolve the index.js file. That is deprecated and is going to throw an error in future Node.js versions. |
reduced node version to 14.6.0 |
Downgrading to node 14 fixed the issue. |
hi, |
This does not work |
Hi,
Since Nodejs 16 I am getting following DeprecationWarning: Invalid 'main' field in '\node_modules\objectorarray\package.json' of 'dist/index.js'. Could you please fix that?
Thank you!
Alexander
The text was updated successfully, but these errors were encountered: