MetaMask / MetaMask/metamask-extension
[Bug]: `TypeError: Error can't access property "stateMachines", this.animator is undefined`
- Dominant language
- TypeScript
- Stars
- 13.2k
- Forks
- 5.6k
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 451
Description
### Describe the bug
The wallet breaks with error `TypeError: Error can't access property "stateMachines", this.animator is undefined`.
It might be browser specific, as so far it has only been seen in Firefox browser, not Chrome
### Expected behavior
No error, no breakage
### Screenshots/Recordings
### Steps to reproduce
So far, seen in ci once https://github.com/MetaMask/metamask-extension/actions/runs/30858938547/job/91837635929
and also in Sentry https://metamask.sentry.io/issues/7597601108/?project=273505&query=is%3Aunresolved%20animator%20is%20undefined&referrer=issue-stream&sort=recommended
### Error messages or log output
```shell
```
### Where was this bug found?
Live version (from official store)
### Version
13.37.0
### Build type
_No response_
### Browser
Firefox
### Operating system
Linux
### Hardware wallet
_No response_
### Additional context
_No response_
### Severity
_No response_
Contributor guide
Research direction
Start by reviewing the linked CI job and Sentry issue, then trace where the wallet accesses `stateMachines` through `this.animator`. Compare the Firefox and Linux context with successful Chrome runs if available. Done means the wallet no longer breaks with this error in the affected Firefox scenario.
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
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100