Uniswap / Uniswap/interface

Crash report: `TypeError: Cannot convert undefined or null to object`

Open
#3,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://ranges.fi/#/add/ETH/0xd2877702675e6cEb975b4A1dFf9fb7BAF4C91ea9/10000

mintV3 state

{
  "independentField": "CURRENCY_A",
  "typedValue": "5000",
  "startPriceTypedValue": "",
  "leftRangeTypedValue": "28.784400",
  "rightRangeTypedValue": "35.156900"
}

Error

TypeError: Cannot convert undefined or null to object

Stacktrace

TypeError: Cannot convert undefined or null to object
    at https://ranges.fi/static/js/main.86bee8dd.chunk.js:1:326484
    at Ns (https://ranges.fi/static/js/4.fe420e3e.chunk.js:2:2064154)
    at t.unstable_runWithPriority (https://ranges.fi/static/js/4.fe420e3e.chunk.js:2:2081967)
    at qi (https://ranges.fi/static/js/4.fe420e3e.chunk.js:2:2004325)
    at Ms (https://ranges.fi/static/js/4.fe420e3e.chunk.js:2:2063615)
    at https://ranges.fi/static/js/4.fe420e3e.chunk.js:2:2063526
    at L (https://ranges.fi/static/js/4.fe420e3e.chunk.js:2:2081026)
    at MessagePort.O.port1.onmessage (https://ranges.fi/static/js/4.fe420e3e.chunk.js:2:2079748)

Device data

{
  "ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.102 Safari/537.36",
  "browser": {
    "name": "Chrome",
    "version": "98.0.4758.102",
    "major": "98"
  },
  "engine": {
    "name": "Blink",
    "version": "98.0.4758.102"
  },
  "os": {
    "name": "Mac OS",
    "version": "10.15.6"
  },
  "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

Reproduce the crash at https://ranges.fi/#/add/ETH/0xd2877702675e6cEb975b4A1dFf9fb7BAF4C91ea9/10000 using the reported mintV3 state. The stack trace identifies only minified deployed JavaScript, not a source file or test, so locate the corresponding source entry point before investigating. Done means this URL no longer raises the reported TypeError.

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.