Skip to content

Declare @walletconnect/types as explicit dep - #18

Merged
szhygulin merged 1 commit into
mainfrom
fix/walletconnect-types-dep
Apr 14, 2026
Merged

Declare @walletconnect/types as explicit dep#18
szhygulin merged 1 commit into
mainfrom
fix/walletconnect-types-dep

Conversation

@szhygulin

Copy link
Copy Markdown
Collaborator

Summary

  • src/signing/walletconnect.ts imports SessionTypes from @walletconnect/types, but the package was only resolved transitively via @walletconnect/sign-client / @walletconnect/utils.
  • npm hoisting made this work locally, but Glama's auto-generated build uses pnpm, which enforces strict module layout — build failed with TS2307: Cannot find module '@walletconnect/types'.
  • Declare @walletconnect/types@^2.17.0 explicitly so both npm and pnpm resolve it.

Test plan

  • npm run build still succeeds
  • pnpm install && pnpm run build succeeds (reproduces Glama's env)
  • After merge, re-trigger Glama Deploy from the admin page

Under npm hoisting the transitive resolution worked, but pnpm's
strict module layout rejects it. src/signing/walletconnect.ts
imports SessionTypes from @walletconnect/types directly, so the
package must be declared in package.json. Fixes Glama's pnpm
build failing with TS2307.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@szhygulin
szhygulin merged commit 9093592 into main Apr 14, 2026
2 checks passed
@szhygulin szhygulin mentioned this pull request Apr 14, 2026
3 tasks
@szhygulin
szhygulin deleted the fix/walletconnect-types-dep branch April 25, 2026 02:15
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