bundle-utils 11.x: `esbuild ^0.25.4` makes `npm install` (npm 12) fail with ERESOLVE next to Vite 8 (Nuxt UI 4.13 + @nuxtjs/i18n 10.7)
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 79/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- node.js, nuxt, typescript, vite
- 領域
- backend, build-system
調査の方向性
dependency dashboard の issue #304 に記載された v11 の Renovate 更新から始め、@intlify/bundle-utils の esbuild のバージョン範囲を確認してください。報告によると、bundle-utils は JavaScript と TypeScript のリソースに対してのみ esbuild.transform を使用します。提供された再現環境を npm 12 でインストールして変更を確認してください。クリーンインストールが成功し、v11 の依存関係の範囲が esbuild 0.27 または 0.28 を受け入れれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Reporting a bug?
@intlify/bundle-utils 11.2.8 depends on esbuild: ^0.25.4. Vite 8.4 has the optional peer esbuild: ^0.27.0 || ^0.28.0.
So far another package usually put an esbuild 0.27 at the root of node_modules, and bundle-utils' 0.25 was nested below it. @nuxt/ui 4.13 moved to @nuxt/fonts 1.2, which no longer brings one. On npm 12, bundle-utils' esbuild 0.25.12 then ends up at the root, outside Vite's peer range, and a clean npm install fails with ERESOLVE. npm 10.8.2 still installs the same package.json: it puts esbuild 0.28.2 at the root and nests bundle-utils' 0.25.12.
Any Nuxt project with @nuxt/ui ≥ 4.13 and @nuxtjs/i18n hits this on npm 12. The chain is @nuxtjs/i18n 10.7.0 → @intlify/unplugin-vue-i18n ^11.2.8 → @intlify/bundle-utils 11.2.8 (exact).
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error Found: [email protected]
npm error node_modules/esbuild
npm error peerOptional esbuild@"*" from [email protected]
npm error ...
npm error esbuild@"^0.25.4" from @intlify/[email protected]
npm error node_modules/@intlify/bundle-utils
npm error @intlify/bundle-utils@"11.2.8" from @intlify/[email protected]
npm error node_modules/@intlify/unplugin-vue-i18n
npm error @intlify/unplugin-vue-i18n@"^11.2.8" from @nuxtjs/[email protected]
npm error
npm error Could not resolve dependency:
npm error peerOptional esbuild@"^0.27.0 || ^0.28.0" from [email protected]
npm error node_modules/vite
npm error peer vite@"^5.2.0 || ^6 || ^7 || ^8" from @tailwindcss/[email protected]
npm error ...
npm error
npm error Conflicting peer dependency: [email protected]
npm error node_modules/nitropack/node_modules/esbuild
npm error peerOptional esbuild@"^0.27.0 || ^0.28.0" from [email protected]
Expected behavior
A clean npm install works on npm 12 too. bundle-utils only calls esbuild.transform(…, { loader: 'ts' }) for JS/TS resources, so raising the range should be safe.
The dependency dashboard (#304) already lists the Renovate update for the v11 line, "fix(deps): update dependency esbuild to ^0.28.0 (v11)" (renovate/v11-esbuild-0.x), but it hasn't been opened yet. Could that ship as an 11.2.x patch of @intlify/bundle-utils and @intlify/unplugin-vue-i18n, with esbuild: ^0.27.0 || ^0.28.0? @nuxtjs/i18n 10.x would pick it up through its ^11.2.8 range without a release of its own.
Reproduction
https://github.com/Tkkg1994/nuxt-ui-i18n-esbuild-eresolve
StackBlitz: https://stackblitz.com/github/Tkkg1994/nuxt-ui-i18n-esbuild-eresolve. Its terminal runs npx -y [email protected] install on start and ends in the ERESOLVE. StackBlitz's own npm 10.8.2 installs it, as npm 10 does locally.
{
"dependencies": {
"@nuxt/ui": "^4.13.1",
"@nuxtjs/i18n": "^10.7.0",
"nuxt": "^4.7.0"
}
}
| Setup | Result |
|---|---|
| npm 12.2.3 | ERESOLVE |
| npm 10.8.2 | installs |
npm 12, @nuxt/ui ~4.12.2 |
installs (esbuild 0.27.7 at the root via @nuxt/fonts 0.14 → fontless 0.2) |
npm 12, without @nuxtjs/i18n |
installs |
npm 12, "overrides": { "@intlify/bundle-utils": { "esbuild": "^0.27.0" } } |
installs, everything on esbuild 0.27.7 |
Issue Package
bundle-utils
System Info
node v24.22.3, npm 12.2.3, Windows 11
also in StackBlitz WebContainer: node v24.22.2, npm 12.2.3 via npx
nuxt 4.7.0, @nuxt/ui 4.13.1, @nuxtjs/i18n 10.7.0,
@intlify/unplugin-vue-i18n 11.2.8, @intlify/bundle-utils 11.2.8, vite 8.4.0
Screenshot
No response
Additional context
Workaround until a release:
"overrides": {
"@intlify/bundle-utils": { "esbuild": "^0.27.0" }
}
Validations
- Read the Contributing Guidelines.
- Read the README
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A open a GitHub Discussion.
- 主要言語
- TypeScript
- スター
- 269
- フォーク
- 46
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
intlify/bundle-tools のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
intlify/bundle-tools#600 · コメント 5 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
intlify/bundle-tools#517 · コメント 4 件 · リアクション 4 件 ·
-
Minimize keysオープン
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
intlify/bundle-tools#502 ·
-
status: proposal
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
intlify/bundle-tools#416 ·
-
status: review needed
難易度 2/5 1〜3時間 初心者へのやさしさ 45/100
intlify/bundle-tools#399 · コメント 1 件 ·
intlify/bundle-tools の issue をすべて見る
似ている issue
-
check:failed streams:edit
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
iptv-org/iptv#60585 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
anthropics/claude-code#112972 ·
-
Type: Improvement
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
ehmpathy/rhachet-roles-bhrain#878 ·
メンテナーはふだん 1 日以内に返信
-
Chat UI: Message actions dropdown is cut off beneath composer when message is near bottom of chat対応中かも @koeria が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
milind-soni/OpenMausBot#8023 ·
メンテナーはふだん 1 日以内に返信