Uniswap / Uniswap/interface

Crash report: `ReferenceError: Can't find variable: ResizeObserver`

Open
#4,328 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?use=V2&chain=mainnet

swap state

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

Error

ReferenceError: Can't find variable: ResizeObserver

Stacktrace

https://app.uniswap.org/static/js/2.c33fc571.chunk.js:2:2704029
https://app.uniswap.org/static/js/2.c33fc571.chunk.js:2:2703665
https://app.uniswap.org/static/js/2.c33fc571.chunk.js:2:2703388
rs@https://app.uniswap.org/static/js/2.c33fc571.chunk.js:2:2878955
Su@https://app.uniswap.org/static/js/2.c33fc571.chunk.js:2:2899168
su@https://app.uniswap.org/static/js/2.c33fc571.chunk.js:2:2891425
su@[native code]
qf@https://app.uniswap.org/static/js/2.c33fc571.chunk.js:2:2832151
https://app.uniswap.org/static/js/2.c33fc571.chunk.js:2:2897964
_u@https://app.uniswap.org/static/js/2.c33fc571.chunk.js:2:2897967
fu@https://app.uniswap.org/static/js/2.c33fc571.chunk.js:2:2890427
fu@[native code]
S@https://app.uniswap.org/static/js/2.c33fc571.chunk.js:2:2916279
M@https://app.uniswap.org/static/js/2.c33fc571.chunk.js:2:2916813
https://app.uniswap.org/static/js/2.c33fc571.chunk.js:2:2920247
c@https://app.uniswap.org/static/js/2.c33fc571.chunk.js:2:2920361
n@https://app.uniswap.org/static/js/2.c33fc571.chunk.js:2:2919307

Device data

{
  "ua": "Mozilla/5.0 (iPhone; CPU iPhone OS 12_5_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.2 Mobile/15E148 Safari/604.1",
  "browser": {
    "name": "Mobile Safari",
    "version": "12.1.2",
    "major": "12"
  },
  "engine": {
    "name": "WebKit",
    "version": "605.1.15"
  },
  "os": {
    "name": "iOS",
    "version": "12.5.5"
  },
  "device": {
    "vendor": "Apple",
    "model": "iPhone",
    "type": "mobile"
  },
  "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 app.uniswap.org swap URL using Mobile Safari on iOS 12.5.5, then trace the ResizeObserver reference from static/js/2.c33fc571.chunk.js:2 back to its source. Done means the swap page loads without this ReferenceError on the reported browser and the affected behavior is covered by a regression check.

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.