-
-
Notifications
You must be signed in to change notification settings - Fork 742
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
Missing puppeteer-extra
peer dependency
#645
Comments
Is this a hypothetical issue or a real-life one? npm changed their behavior around peer dependencies a while back, if I recall correctly |
Steps to reproduce:
Output: ➤ YN0000: ┌ Resolution step
➤ YN0002: │ puppeteer-extra-plugin-stealth@npm:2.10.0 doesn't provide puppeteer-extra (p716a8), requested by puppeteer-extra-plugin
➤ YN0002: │ puppeteer-extra-plugin-user-data-dir@npm:2.3.1 doesn't provide puppeteer-extra (pbf180), requested by puppeteer-extra-plugin
➤ YN0002: │ puppeteer-extra-plugin-user-preferences@npm:2.3.1 doesn't provide puppeteer-extra (p3e49e), requested by puppeteer-extra-plugin
➤ YN0000: │ Some peer dependencies are incorrectly met; run yarn explain peer-requirements <hash> for details, where <hash> is the six-letter p-prefixed code
➤ YN0000: └ Completed Edit: |
Given we now introduced Therefore closing this for now |
@berstend I don't know if you should consider to use optional peer dependency: "peerDependencies": {
"puppeteer-extra": "*",
},
"peerDependenciesMeta": {
"puppeteer-extra": {
"optional": true
}
} |
The whole situation with peer dependencies is messy :-/ I wonder what the best behavior from our perspective would be, warning but not auto-installing? |
With optional = true, peer dependencies will not be installed. Source: npm/rfcs#221 (comment) Maybe, we can ask some help to arcanis and merceyz from yarn. |
Transitive
puppeteer-extra
peer dependency must be included in each dependency:puppeteer-extra-plugin-anonymize-ua
puppeteer-extra-plugin-block-resources
puppeteer-extra-plugin-click-and-wait
puppeteer-extra-plugin-devtools
puppeteer-extra-plugin-flash
puppeteer-extra-plugin-font-size
puppeteer-extra-plugin-repl
puppeteer-extra-plugin-stealth
puppeteer-extra-plugin-user-data-dir
puppeteer-extra-plugin-user-preferences
Changes
package.json
"peerDependencies": { + "puppeteer-extra": "*", ... }
The text was updated successfully, but these errors were encountered: