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
Optional peer dependency cause unmet warning #7985
Labels
Comments
meow 13 is in the dependencies of [email protected] and is used to resolve the optional peer of vite-plugin-checker. |
Pnpm v8 didn't give this warning. Thus is it an issue of v8 instead of v9? How to let vite-plugin-checker ignore meow which is not required? |
I'll think about it. Maybe we should change how it works in v9. Maybe we should hoist optional peer dependencies only if they match the range. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Verify latest release
pnpm version
No response
Which area(s) of pnpm are affected? (leave empty if unsure)
Dependencies resolver
Link to the code that reproduces this issue or a replay of the bug
https://stackblitz.com/edit/vitejs-vite-sttob6
Reproduction steps
Enter the repro link and run
pnpm v9
(which is a script to install dependencies with v9 instead of default v8 in stackblitz).Describe the Bug
The following error will be printed
Expected Behavior
Should not have unmet warning as
meow
is an optional dependency ofvite-plugin-checker
No warning in pnpm v8
Which Node.js version are you using?
v20.11.1
Which operating systems have you used?
If your OS is a Linux based, which one it is? (Include the version if relevant)
No response
The text was updated successfully, but these errors were encountered: