Uniswap / Uniswap/interface

Crash report: `TypeError: undefined is not an object (evaluating 'c.a.getState().lists.byUrl[l.g].current')`

Open
#4,415 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/#/swap?chain=mainnet

swap state

{
  "INPUT": {
    "currencyId": "ETH"
  },
  "OUTPUT": {
    "currencyId": null
  },
  "independentField": "INPUT",
  "typedValue": "",
  "recipient": null
}

Error

TypeError: undefined is not an object (evaluating 'c.a.getState().lists.byUrl[l.g].current')

Stacktrace

value@https://app.uniswap.org/static/js/main.af8397bb.chunk.js:1:618154
value@https://app.uniswap.org/static/js/main.af8397bb.chunk.js:1:618671
j@https://app.uniswap.org/static/js/main.af8397bb.chunk.js:1:619655
xe@https://app.uniswap.org/static/js/main.af8397bb.chunk.js:1:936447
ka@https://app.uniswap.org/static/js/3.66ed8104.chunk.js:2:3024626
ks@https://app.uniswap.org/static/js/3.66ed8104.chunk.js:2:3081839
gu@https://app.uniswap.org/static/js/3.66ed8104.chunk.js:2:3070775
vu@https://app.uniswap.org/static/js/3.66ed8104.chunk.js:2:3070703
yu@https://app.uniswap.org/static/js/3.66ed8104.chunk.js:2:3070566
ou@https://app.uniswap.org/static/js/3.66ed8104.chunk.js:2:3067346
su@https://app.uniswap.org/static/js/3.66ed8104.chunk.js:2:3067737
su@[native code]
Hi@https://app.uniswap.org/static/js/3.66ed8104.chunk.js:2:3008347
@https://app.uniswap.org/static/js/3.66ed8104.chunk.js:2:3065287

Device data

{
  "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.0 Safari/605.1.15",
  "browser": {
    "name": "Safari",
    "version": "16.0",
    "major": "16"
  },
  "engine": {
    "name": "WebKit",
    "version": "605.1.15"
  },
  "os": {
    "name": "Mac OS",
    "version": "10.15.7"
  },
  "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 swap URL on Safari, then trace the minified stack through main.af8397bb.chunk.js and 3.66ed8104.chunk.js. Identify why the swap state reaches an undefined list entry and add a regression test or other project-appropriate verification. Done means the route no longer crashes for the reported state.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
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.