Uniswap / Uniswap/interface

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

Open
#3,295 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

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

Error

ReferenceError: Can't find variable: ResizeObserver

Stacktrace

https://app.uniswap.org/static/js/96.eb45b585.chunk.js:2:3345562
https://app.uniswap.org/static/js/96.eb45b585.chunk.js:2:3345284
https://app.uniswap.org/static/js/96.eb45b585.chunk.js:2:3345397
Ru@https://app.uniswap.org/static/js/96.eb45b585.chunk.js:2:3502386
Ru@[native code]
unstable_runWithPriority@https://app.uniswap.org/static/js/96.eb45b585.chunk.js:2:3521597
Du@https://app.uniswap.org/static/js/96.eb45b585.chunk.js:2:3499006
wu@https://app.uniswap.org/static/js/96.eb45b585.chunk.js:2:3495092
wu@[native code]
https://app.uniswap.org/static/js/96.eb45b585.chunk.js:2:3444360
unstable_runWithPriority@https://app.uniswap.org/static/js/96.eb45b585.chunk.js:2:3521597
Zr@https://app.uniswap.org/static/js/96.eb45b585.chunk.js:2:3444306
Kr@https://app.uniswap.org/static/js/96.eb45b585.chunk.js:2:3444241
https://app.uniswap.org/static/js/96.eb45b585.chunk.js:2:3515557
Ie@https://app.uniswap.org/static/js/96.eb45b585.chunk.js:2:3515560
Le@https://app.uniswap.org/static/js/96.eb45b585.chunk.js:2:3414603
https://app.uniswap.org/static/js/96.eb45b585.chunk.js:2:3435794
Cf@https://app.uniswap.org/static/js/96.eb45b585.chunk.js:2:3435798
$t@https://app.uniswap.org/static/js/96.eb45b585.chunk.js:2:3423853
Yt@https://app.uniswap.org/static/js/96.eb45b585.chunk.js:2:3423079
Yt@[native code]
unstable_runWithPriority@https://app.uniswap.org/static/js/96.eb45b585.chunk.js:2:3521597
Re@https://app.uniswap.org/static/js/96.eb45b585.chunk.js:2:3515354
Zt@https://app.uniswap.org/static/js/96.eb45b585.chunk.js:2:3422871
Zt@[native code]

Device data

{
  "ua": "Mozilla/5.0 (iPhone; CPU iPhone OS 12_4_4 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.4.4"
  },
  "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 swap URL on the reported iPhone iOS 12.4.4 Mobile Safari environment and inspect the stack trace for the source of the ResizeObserver reference. Trace that reference to the relevant frontend entry point; done means the swap page no longer crashes in this environment.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.