Compile Failure
Open
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
- yarn start
- Change anything so react recompiles

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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