MetaMask / MetaMask/metamask-mobile
[Bug]: ReferenceError: Can't find variable: MessageEvent,
- Dominant language
- TypeScript
- Stars
- 3k
- Forks
- 1.7k
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 669
Description
### Describe the bug

Thread 12: "Unhandled JS Exception: ReferenceError: Can't find variable: MessageEvent, stack:\n@5145:692\nh@2:1788\n@5144:531\nh@2:1788\n@5143:1444\nh@2:1788\n@4917:592\nh@2:1788\n@4916:531\nh@2:1788\nd@2:1179\nv@1377:15377\ninit@1377:35193\n@5921:477\n@1298:848\ny@5783:1377\nS@5775:490\n@5775:1139\nu@99:157\n@99:869\n@105:1470\nT@105:418\np@105:691\ncallReactNativeMicrotasks@105:2861\nvalue@33:2942\n@33:1033\nvalue@33:2578\nvalue@33:991\n"
### Expected behavior
How I can fix it ???
### Screenshots/Recordings
_No response_
### Steps to reproduce
I don't know how to fix
### Error messages or log output
```shell
```
### Detection stage
In production (default)
### Version
7.40.0
### Build type
None
### Device
IOS
### Operating system
iOS
### Additional context
_No response_
### Severity
_No response_
Contributor guide
Research direction
Start by reproducing the crash in an iOS production build of version 7.40.0 and use the provided stack trace to locate the bundled code that references MessageEvent. Trace which dependency or browser-facing path reaches that reference, then verify the fix by confirming the production build no longer raises the exception.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, react-native, typescript
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 18/100