-
Notifications
You must be signed in to change notification settings - Fork 7
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
node-fetch missing in dependency tree #44
Comments
I think For example, my project uses
|
Hey folks, thanks for reaching out and apologies for the late answer. We can go with https://github.com/web-std/io/tree/main/fetch to make this possible. Any of you would like to submit a PR? |
The multi-platform compatibility does make this harder to tackle. Axios and isomorphic-fetch are another 2 possible platform-agnostic tools that may help. |
It somehow got fixed in my project after some npm clean up 🤔 |
The module `native-fetch` requires `undici` to be installed as its peer dependency. Before this change, `pnpm add` was reporting a missing peer dependency. dependencies: + dns-over-http-resolver 2.1.0 WARN Issues with peer dependencies found . └─┬ dns-over-http-resolver 2.1.0 └─┬ native-fetch 4.0.2 └── ✕ missing peer undici@"*" Peer dependencies that should be installed: undici@"*" With this change in place, there are no warnings reported. dependencies: + dns-over-http-resolver 2.1.1 Progress: resolved 9, reused 9, downloaded 0, added 9, done Fixes #44
🎉 This issue has been resolved in version 2.1.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Problem
This lib requires
native-fetch
which declaresnode-fetch
as its peerDep. Butnode-fetch
is not a dependency of this lib. Should we expect the app that depends on this lib to installnode-fetch
or should we havenode-fetch
in this lib's deps list?The text was updated successfully, but these errors were encountered: