cloudflare / cloudflare/vinext
Server export conditions (`react-server`) resolve to the wrong branch
- Dominant language
- TypeScript
- Stars
- 8.8k
- Forks
- 406
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 120
Description
_Found running the official Next.js e2e test suite against vinext (vinext 1.0.0-beta.8, Next.js 16.2). Error line is from the suite's own output._
**Fixture:** `test/e2e/import-conditions`
**Symptom:** `serverFavoringBrowser` / `react-server` export conditions resolve to the wrong branch in the server bundle.
**Repro:** a dependency whose `exports` map differentiates a `react-server` condition; assert the server build selects the `react-server` entry.
Contributor guide
Research direction
Start with the `test/e2e/import-conditions` fixture and reproduce the issue by running the official Next.js e2e test suite against vinext. Check how the server bundle handles a dependency whose `exports` map includes a `react-server` condition; done means the server build selects that entry.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- next.js, typescript, vite
- Domain
- build-system, testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Clearly specified
- Newbie friendliness
- 70/100