Skip to content

Conversation

@TrevorBurnham
Copy link
Contributor

This branch was generated by throwing Claude Sonnet 4.5 at the bug described at #8416, where an ERESOLVE was thrown because of an unresolved optional peer dependency.

Claude's fix here is naïve: It simply ignores peer conflicts if edge.type === 'peerOptional'. I don't think that's the right approach. I suspect that the issue described at #8416 is a consequence of a deeper problem with incorrect ERESOLVE errors being thrown during peer dependency resolution (as seen in other tickets) rather than a property of optional peer dependencies per se.

Still, I thought I'd share the branch in case it gives the maintainers some inspiration. The test cases added here should be useful for trying other solutions against.

References

Related to #8416

@wraithgar
Copy link
Member

#8647 (comment)

@wraithgar wraithgar closed this Oct 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants