Crash report: `TypeError: Cannot read properties of undefined (reading 'split')`
Open
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
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 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