Uniswap / Uniswap/interface

Crash Report: Argument of type '"-" | { groupSeparator: string; }' is not assignable to parameter of type 'object'.

Open
#3,955 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
TypeScript error in /Users/usman/Downloads/interface-main/src/components/claim/AddressClaimModal.tsx(114,53):
Argument of type '"-" | { groupSeparator: string; }' is not assignable to parameter of type 'object'.
Type 'string' is not assignable to type 'object'. TS2345

Steps to Reproduce

  1. clone Repo
  2. npm install --force
  3. npm start
  4. Crash and produce Error

Screenshot at Jun 22 15-21-12

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 by reproducing the TypeScript error with npm install --force and npm start, then inspect src/components/claim/AddressClaimModal.tsx at line 114 and the reported argument type. Done means the project starts without this TS2345 error and the affected claim modal still works.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.