Skip to content
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

Dependency deprecation warning in Node 16+ #124

Open
Michionlion opened this issue Nov 8, 2021 · 0 comments
Open

Dependency deprecation warning in Node 16+ #124

Michionlion opened this issue Nov 8, 2021 · 0 comments

Comments

@Michionlion
Copy link

In Node 16 and up, running prettier-standard generates the following error:

(node:416235) [DEP0128] DeprecationWarning: Invalid 'main' field in '/home/saejin/projects/personal/indexify/node_modules/find-parent-dir/package.json' of 'find-parent-dir.js'. Please either fix that or report it to the module author

This is caused by a dependency of prettierx -- find-parent-dir. A fix was released as version 0.3.1 of that package, and incorporated in prettierx in version 0.18.2. The version of prettierx used in prettier-standard should probably be updated to 0.18.2 or 0.19.0 (the latest as of this issue); some preliminary testing by forcing resolution seems to not cause any issues.

In the meantime, people who encounter this issue can add the following snippet to their package.json, and Yarn will force prettierx version 0.19.0 (with patches) to be installed instead of the current 0.11.3. Npm has an old plugin to do the same, and a new RFC for the same functionality under a different name.

"resolutions": {
  "prettierx": "~0.19.0"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant