Uniswap / Uniswap/interface

Crash report: `TypeError: Cannot read properties of undefined (reading 'split')`

Open
#3,869 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

URL

https://app.uniswap.org/#/vote?chain=mainnet

Error

TypeError: Cannot read properties of undefined (reading 'split')

Stacktrace

TypeError: Cannot read properties of undefined (reading 'split')
    at https://app.uniswap.org/static/js/105.cf3fa6d7.chunk.js:1:16030
    at Array.map (<anonymous>)
    at https://app.uniswap.org/static/js/105.cf3fa6d7.chunk.js:1:15851
    at Array.map (<anonymous>)
    at https://app.uniswap.org/static/js/105.cf3fa6d7.chunk.js:1:15291
    at Object._i [as useMemo] (https://app.uniswap.org/static/js/96.eb45b585.chunk.js:2:3463300)
    at t.useMemo (https://app.uniswap.org/static/js/96.eb45b585.chunk.js:2:3387662)
    at J (https://app.uniswap.org/static/js/105.cf3fa6d7.chunk.js:1:15015)
    at ne (https://app.uniswap.org/static/js/105.cf3fa6d7.chunk.js:1:16957)
    at kt (https://app.uniswap.org/static/js/105.cf3fa6d7.chunk.js:1:51064)

Device data

{
  "ua": "Mozilla/5.0 (X11; CrOS x86_64 14388.61.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.107 Safari/537.36",
  "browser": {
    "name": "Chrome",
    "version": "98.0.4758.107",
    "major": "98"
  },
  "engine": {
    "name": "Blink",
    "version": "98.0.4758.107"
  },
  "os": {
    "name": "Chromium OS",
    "version": "14388.61.0"
  },
  "device": {},
  "cpu": {}
}

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 crash at the reported vote URL in Chrome, then inspect the code corresponding to static/js/105.cf3fa6d7.chunk.js and its useMemo call. Trace the Array.map path that reaches split and verify that the mainnet vote page loads without the reported TypeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.