You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Either remove prettier as optional dependency or declare a version range like ">=2.8.7" for the optional prettier dependency so that it can correctly be deduped by npm depending on the other version constaints from the project / other dependencies.
Describe alternatives you have considered
Overriding the prettier version yaml-language-server declares in my project's package.json via:
Is your enhancement related to a problem? Please describe.
yaml-language-server
declares a specific 2.8.7 version ofprettier
as optional dependency:yaml-language-server/package.json
Line 33 in f039273
This causes issues with different
prettier
versions being installed in a project / being used by other packages.E.g. with astro:
Describe the solution you would like
Either remove
prettier
as optional dependency or declare a version range like">=2.8.7"
for the optionalprettier
dependency so that it can correctly be deduped by npm depending on the other version constaints from the project / other dependencies.Describe alternatives you have considered
Overriding the
prettier
versionyaml-language-server
declares in my project'spackage.json
via:...to "hack" around the problem.
Additional context
Related to #909 which has been open since a long time but there was no longer any activity.
The text was updated successfully, but these errors were encountered: