cloudflare / cloudflare/vinext

Build fails with `[UNRESOLVED_ENTRY] nitro/dist/presets/bun/runtime/bun` when a custom `resolve.extensions` is set

Open
#3,222 0 comments 0 reactions 0 assignees View on GitHub
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/app-dir/resolve-extensions`

**Symptom (build):** `[UNRESOLVED_ENTRY] nitro/dist/presets/bun/runtime/bun`. A fixture-level custom `resolve.extensions` appears to shadow the nitro bun preset's own entry resolution, so the preset runtime entry no longer resolves.

**Repro:** an app that overrides `resolve.extensions`, built through the nitro `preset: 'bun'`.

Contributor guide

Open the contributing guide

Research direction

Start with the test/e2e/app-dir/resolve-extensions fixture and run its build through the nitro preset: 'bun'. Trace how the fixture-level resolve.extensions affects the bun runtime entry, then confirm the fixture builds without the [UNRESOLVED_ENTRY] error and the official e2e test passes.

Written by the indexing model from the issue text.

Assessment

Tech stack
bun, nextjs, typescript
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.