Skip to content

fix: pin @polkadot/util to single version to fix --all compile crash - #228

Open
0x5t4l1n wants to merge 1 commit into
inkdevhub:masterfrom
0x5t4l1n:fix/polkadot-util-dedup
Open

fix: pin @polkadot/util to single version to fix --all compile crash#228
0x5t4l1n wants to merge 1 commit into
inkdevhub:masterfrom
0x5t4l1n:fix/polkadot-util-dedup

Conversation

@0x5t4l1n

@0x5t4l1n 0x5t4l1n commented Aug 2, 2026

Copy link
Copy Markdown

Summary\n\nFixes #200swanky contract compile --all crashed after adding a second contract because @727-ventures/typechain-polkadot brought in a conflicting @polkadot/util version.\n\nFix in package.json: Add an overrides block pinning all @polkadot/util references to 12.6.2.\n\n## Test plan\n- [ ] npm install && npm dedupe\n- [ ] swanky contract compile --all after adding a second contract → both compile successfully\n\n🤖 Generated with Claude Code

…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).
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.

1 participant