Repository navigation
fix: pin @vitejs/devtools so npm 10 can install new projects - #132
Merged
Merged
Conversation
@vitejs/devtools 0.8.0, an optional peer of tsdown, crashes npm 10's peer resolver with "Cannot read properties of null (reading 'edgesOut')", so every npm project failed to install on Node 22. npm 11 is unaffected. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PR preview published
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Since
@vitejs/devtools0.8.0 (14 October), every npm project fails to install on Node 22 with its bundled npm 10:@vitejs/devtoolsis an optional peer of tsdown, and 0.8.0's own optional peers point back at it, which crashes npm 10's peer resolver. npm 11 is unaffected. This is also why "Publish PR preview" fails on #130 and #131.What changes
npm projects pin
@vitejs/devtoolsto 0.7.6 throughoverrides. It's an optional peer, so it isn't installed either way.Testing
minimalandnextscaffold and install;npm run buildpasses.bun test(non-e2e): 107 pass. Typecheck, lint and format pass.🤖 Generated with Claude Code