MetaMask / MetaMask/metamask-extension

[Bug]: Unable to switch network Linea Seploia in webpack build

Open
#27,800 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

regression-prod-12.4.1 Sev3-low team-extension-platform type-bug
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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.