[Bug] Build fails in @uniswap/extension due to vite transform error
Nobody has claimed this yet.
- 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
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
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