Uniswap / Uniswap/interface

[Bug] Build fails in @uniswap/extension due to vite transform error

Open
#7,965 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
5.5k
Forks
5.4k
PR merge metrics
No merged PRs in 30d

Description

While running the prepare script, the build for @uniswap/extension fails with a Vite transform error.

The logs show:

Recommendation to switch from @vitejs/plugin-react-babel to @vitejs/plugin-react-oxc

oxc transform error triggered at replaceDefine inside vite

Command fails after a few seconds and exits with code 1

As a result, dependent tasks like @universe/api:prepare and @universe/api:tradingapi:generate are also skipped or fail with exit code 130

So far, the error seems specific to the extension build step and blocks downstream tasks.

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 running the prepare script and isolate the @uniswap/extension build step from the downstream @universe/api:prepare and @universe/api:tradingapi:generate tasks. Inspect the Vite transform failure around replaceDefine and the reported React plugin recommendation. Done means the extension build completes without the transform error and the dependent tasks are no longer blocked.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vite
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.