Uniswap / Uniswap/interface

Crash report: `ReferenceError: ResizeObserver is not defined`

Open
#3,236 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": "0xdDF7Fd345D54ff4B40079579d4C4670415DbfD0A"
  },
  "OUTPUT": {
    "currencyId": "ETH"
  },
  "independentField": "INPUT",
  "typedValue": "5",
  "recipient": null
}

Error

ReferenceError: ResizeObserver is not defined

Stacktrace

ReferenceError: ResizeObserver is not defined
    at https://app.uniswap.org/static/js/35.8c2ca95e.chunk.js:2:2816465
    at https://app.uniswap.org/static/js/35.8c2ca95e.chunk.js:2:2816200
    at https://app.uniswap.org/static/js/35.8c2ca95e.chunk.js:2:2816313
    at Mu (https://app.uniswap.org/static/js/35.8c2ca95e.chunk.js:2:3052753)
    at t.unstable_runWithPriority (https://app.uniswap.org/static/js/35.8c2ca95e.chunk.js:2:3071964)
    at Xf (https://app.uniswap.org/static/js/35.8c2ca95e.chunk.js:2:2994504)
    at Ru (https://app.uniswap.org/static/js/35.8c2ca95e.chunk.js:2:3049372)
    at wu (https://app.uniswap.org/static/js/35.8c2ca95e.chunk.js:2:3045458)
    at https://app.uniswap.org/static/js/35.8c2ca95e.chunk.js:2:2994727
    at t.unstable_runWithPriority (https://app.uniswap.org/static/js/35.8c2ca95e.chunk.js:2:3071964)

Device data

{
  "ua": "Mozilla/5.0 (Linux; Android 7.1.1; CPH1729 Build/N6F26Q; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/61.0.3163.98 Mobile Safari/537.36",
  "browser": {
    "name": "Chrome WebView",
    "version": "61.0.3163.98",
    "major": "61"
  },
  "engine": {
    "name": "Blink",
    "version": "61.0.3163.98"
  },
  "os": {
    "name": "Android",
    "version": "7.1.1"
  },
  "device": {
    "vendor": "OPPO",
    "model": "CPH1729",
    "type": "mobile"
  },
  "cpu": {}
}

Screenshot_2022-02-04-19-25-02-28

i have eror when i want to swap socialgood coin using Trust Wallet

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 with the supplied state on the Android 7.1.1 Chrome WebView 61 environment and trace the minified chunk where ResizeObserver is referenced. Done means the swap page no longer crashes in that environment; the payload does not identify a source file or test to run.

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.