Uniswap / Uniswap/interface

Crash report: `TypeError: Cannot write private member to an object whose class did not declare it`

Open
#7,667 1 comment 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://www.bakeryswap.org/#/launchpad

Error

TypeError: Cannot write private member to an object whose class did not declare it

Stacktrace

TypeError: Cannot write private member to an object whose class did not declare it
    at mb (chrome-extension://aflkmfhebedbjioipglgcbcmnbpgliof/injected.js:1:3474009)
    at get isMetaMask (chrome-extension://aflkmfhebedbjioipglgcbcmnbpgliof/injected.js:1:3475038)
    at Reflect.get (<anonymous>)
    at Object.get (chrome-extension://aflkmfhebedbjioipglgcbcmnbpgliof/injected.js:1:3504873)
    at https://www.bakeryswap.org/static/js/main.e94a7365.chunk.js:1:432444
    at GO (https://www.bakeryswap.org/static/js/main.e94a7365.chunk.js:1:434261)
    at aa (https://www.bakeryswap.org/static/js/4.40db1819.chunk.js:2:1863381)
    at Ws (https://www.bakeryswap.org/static/js/4.40db1819.chunk.js:2:1915725)
    at Pu (https://www.bakeryswap.org/static/js/4.40db1819.chunk.js:2:1902971)
    at Ou (https://www.bakeryswap.org/static/js/4.40db1819.chunk.js:2:1902899)

Device data

{
  "ua": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36",
  "browser": {
    "name": "Chrome",
    "version": "121.0.0.0",
    "major": "121"
  },
  "engine": {
    "name": "Blink",
    "version": "121.0.0.0"
  },
  "os": {
    "name": "Windows",
    "version": "10"
  },
  "device": {},
  "cpu": {
    "architecture": "amd64"
  }
}

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 https://www.bakeryswap.org/#/launchpad in Chrome 121 on Windows 10, with the reported wallet extension context. Inspect the interaction between the compiled main.e94a7365.chunk.js code and injected.js; no source file or test is identified in the report. Done means the launchpad no longer throws this error in the reported setup.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
blockchain, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.