fix: pin @polkadot/util to single version to fix --all compile crash - #228
Open
0x5t4l1n wants to merge 1 commit into
Open
fix: pin @polkadot/util to single version to fix --all compile crash#2280x5t4l1n wants to merge 1 commit into
0x5t4l1n wants to merge 1 commit into
Conversation
…ot crash Resolves inkdevhub#200. When a second contract is added via `swanky contract new`, npm installs @727-ventures/typechain-polkadot which brings in its own conflicting @polkadot/util version. The multiple-version conflict causes typechain-polkadot to fail finding its .hbs templates, breaking `swanky contract compile --all`. Add an overrides block so npm resolves all @polkadot/util references to the version already declared in dependencies (12.6.2).
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.
Summary\n\nFixes #200 —
swanky contract compile --allcrashed after adding a second contract because@727-ventures/typechain-polkadotbrought in a conflicting@polkadot/utilversion.\n\nFix inpackage.json: Add anoverridesblock pinning all@polkadot/utilreferences to12.6.2.\n\n## Test plan\n- [ ]npm install && npm dedupe\n- [ ]swanky contract compile --allafter adding a second contract → both compile successfully\n\n🤖 Generated with Claude Code