Skip to content

pnpm build fails with module resolution errors after frozen install #76

Description

@bdunn77

Summary

pnpm build currently fails after a successful frozen-lockfile install due to module resolution errors, including a missing @walletconnect/ethereum-provider package.

This was discovered while testing PR #74, but appears unrelated to that PR because the committed change only touches components/capital/referral-panel.tsx and does not add new build-time dependencies.

Environment

  • OS: Windows
  • Node: v24.12.0
  • pnpm: 9.15.0 via Corepack
  • Package manager command used: corepack pnpm
  • Repo branch tested: fix/referral-link-copy, with the only committed change in components/capital/referral-panel.tsx

Note: pnpm warns that the repo expects Node ^22.22.0, so it would be useful to confirm this on Node 22 as well.

Reproduction steps

corepack pnpm install --frozen-lockfile
corepack pnpm build

Expected behavior

The Next.js production build should complete successfully.

Actual behavior

The build fails with module resolution errors. Examples from the log:

Module not found: Can't resolve '@radix-ui/react-toggle-group'
Module not found: Can't resolve '@radix-ui/react-tooltip'
Module not found: Can't resolve '@walletconnect/ethereum-provider'

The WalletConnect error appears from Web3Modal/Wagmi imports, for example:

./node_modules/.pnpm/@web3modal+base@5.1.11_.../node_modules/@web3modal/base/dist/esm/adapters/evm/wagmi/client.js:1:1
Module not found: Can't resolve '@walletconnect/ethereum-provider'

Additional local check

After install:

@radix-ui/react-toggle-group: present
@radix-ui/react-tooltip: present
@walletconnect/ethereum-provider: missing

pnpm list showed the Radix packages as top-level dependencies, but did not show @walletconnect/ethereum-provider.

Possible cause

This may be a missing direct/peer dependency, lockfile issue, or Node-version-related install/build issue. The repo currently warns that Node ^22.22.0 is expected, while the local test was on Node v24.12.0.

Related context

This blocked checking PR #74 with the standard repo build command.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions