Skip to content

Comments

fix: run pnpm install before ibazel to ensure dependencies are available#1149

Merged
lacolaco merged 1 commit intoangular:mainfrom
lacolaco:fix/pnpm-start-ibazel
Feb 24, 2026
Merged

fix: run pnpm install before ibazel to ensure dependencies are available#1149
lacolaco merged 1 commit intoangular:mainfrom
lacolaco:fix/pnpm-start-ibazel

Conversation

@lacolaco
Copy link
Collaborator

概要

pnpm start実行時に「Command 'ibazel' not found」エラーが発生する問題を修正。

原因

serveAdev()ibazelを直接呼び出す前に、buildディレクトリでpnpm installを実行していなかった。@bazel/ibazelはnpmパッケージとして提供されているため、node_modules/.bin/ibazelが存在しないと実行できない。

修正内容

  • serveAdev()をasync関数に変更
  • ibazel runの前にpnpm install --frozen-lockfileを実行
  • watch.tsawait serveAdev()に修正

serveAdev() was calling ibazel directly without ensuring node_modules
were installed first. This caused "Command 'ibazel' not found" error
when pnpm start was run without prior pnpm install in build directory.
@lacolaco lacolaco merged commit 49a3135 into angular:main Feb 24, 2026
5 of 6 checks passed
@lacolaco lacolaco deleted the fix/pnpm-start-ibazel branch February 24, 2026 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant