-
Notifications
You must be signed in to change notification settings - Fork 343
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
Incompatible node-fetch version (peer dependency of addons-scanner-utils) #2576
Comments
This error is not raised by npm nor yarn. Why would pnpm complain loudly about this when the other two package managers don't? I wonder whether this is an issue with pnpm instead of this library. |
This isn't issue with pnpm, rather I belive it is caused by how packages are hoisted. I do not know the internals of pnpm however, so it might be caused by something else. As I mentioned before though, what is the point of making node-fetch a peer dependency if only one version is allowed? Why isn't node-fetch a direct dependency, or semver range isn't used? |
Because it is an optional peer dependency (and marked as such), part of the scanner-utils lib is irelevant for addons-linter but used by other (internal) projects. These projects require the correct |
I see, I didn't notice it was an optional dependency. |
I can confirm this occurs still too, but only with pnpm. I tried npm, yarn and bun, all three seem to work fine! Also, if you have any workarounds, then please share! |
When installing web-ext with pnpm, I get the following warning
after removing lockfile and installing again, this becomes an error
What is the point of making node-fetch a peer dependency if only one version is allowed?
https://github.com/mozilla/addons-scanner-utils/blob/d87cb1b2377d1b1711697c0cf1de4d028af400c6/package.json#L23
Version information (for bug reports)
The text was updated successfully, but these errors were encountered: