cloudflare / cloudflare/vinext
CommonJS-typed package (`"type":"commonjs"`) resolved as ESM for a client module
- 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/client-module-with-package-type`
**Symptom:** a dependency declaring `"type":"commonjs"` resolves as ESM (`lib-cjs: esm`).
**Repro:** a client-imported dep with `"type":"commonjs"`; assert it loads as CommonJS.
Contributor guide
Research direction
Start with the fixture at test/e2e/app-dir/client-module-with-package-type and run the official Next.js e2e test suite to reproduce the reported output. Trace how the client-imported dependency declaring "type":"commonjs" is resolved, and consider the issue done when the fixture asserts that it loads as CommonJS rather than ESM.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- next.js, typescript
- Domain
- build-system, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 72/100