MetaMask / MetaMask/metamask-extension
[Bug]: Unable to switch network Linea Seploia in webpack build
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 13.2k
- Forks
- 5.6k
- Avg merge
- 2d 5h
- Merged PRs (30d)
- 451
Description
### Describe the bug
When attempting to switch to the Linea Sepolia test network in a branch with a webpack build, the operation fails. However, this functionality works correctly in the regular build. The issue needs to be investigated and resolved to ensure consistent behavior across different builds.
### Expected behavior
Should be able to switch network
### Screenshots/Recordings
https://github.com/user-attachments/assets/82c06314-e786-47b6-8e51-c2a499de2082
### Steps to reproduce
1. Run the webpack build command to compile the project.
`yarn webpack `
2. Open the application in a web browser.
3. Navigate to the network settings.
4. Attempt to switch to the Linea Sepolia test network.
### Error messages or log output
_No response_
### Detection stage
In production (default)
### Version
12.4.1
### Build type
None
### Browser
Chrome
### Operating system
MacOS
### Hardware wallet
_No response_
### Additional context
_No response_
### Severity
_No response_
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure by running `yarn webpack`, opening the application in Chrome, and attempting to switch to Linea Sepolia from network settings; compare this with the regular build where switching works. Inspect the webpack build path and network-switching entry points, then verify that Linea Sepolia switching succeeds consistently in the webpack build.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, webpack
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100