Uniswap / Uniswap/interface

Compile Failure

Open
#5,877 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
5.5k
Forks
5.4k
PR merge metrics
No merged PRs in 30d

Description

Bug Description
Receiving this error on any changes made during the compile process:

C:/Users/__/interface/src/hooks/useArgentWalletContract.ts
TypeScript error in C:/Users/__/interface/src/hooks/useArgentWalletContract.ts(4,38):
Cannot find module '../abis/types' or its corresponding type declarations.  TS2307

    2 | 
    3 | import ArgentWalletContractABI from '../abis/argent-wallet-contract.json'
  > 4 | import { ArgentWalletContract } from '../abis/types'
      |                                      ^
    5 | import { useContract } from './useContract'
    6 | import useIsArgentWallet from './useIsArgentWallet'
    7 |

There is no "types" folder or file within the "api" folder

Steps to Reproduce

  1. yarn start
  2. Change anything so react recompiles
    error

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with interface/src/hooks/useArgentWalletContract.ts and inspect the ../abis/types import alongside the Argent wallet ABI files. Run yarn start, make a small change, and confirm the TypeScript TS2307 error can be reproduced. Done means recompilation succeeds without the missing-module error.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.