Skip to content

Conversation

@alan-agius4
Copy link
Contributor

@alan-agius4 alan-agius4 commented Jan 28, 2025

The package depends on which but did not explicitly list it as a direct dependency, leading to build failures.

The following error was encountered during the build:

ERROR: <path-to-file>/BUILD.bazel:7:19: Bundling Javascript <path-to-file>/lib/main.ts [esbuild] failed: (Exit 1): _main_generated_esbuild_launcher.sh failed: error executing command
Error: Could not resolve "which"

    node_modules/@angular/ng-dev/utils/resolve-yarn-bin.js:10:18:
        import which from 'which';
                        ~~~~~~~

Example: https://github.com/angular/angular/actions/runs/12997612455/job/36248972584?pr=59669

The package depends on `which` but did not explicitly list it as a direct dependency, leading to build failures.

The following error was encountered during the build:
```
ERROR: <path-to-file>/BUILD.bazel:7:19: Bundling Javascript <path-to-file>/lib/main.ts [esbuild] failed: (Exit 1): _main_generated_esbuild_launcher.sh failed: error executing command
Error: Could not resolve "which"

    node_modules/@angular/ng-dev/utils/resolve-yarn-bin.js:10:18:
        import which from 'which';
                        ~~~~~~~
```
Copy link
Member

@devversion devversion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! No idea why this surfaces now?!

@devversion devversion merged commit 2670abf into angular:main Jan 28, 2025
9 of 10 checks passed
@alan-agius4 alan-agius4 deleted the which branch January 28, 2025 11:48
@alan-agius4
Copy link
Contributor Author

alan-agius4 commented Jan 28, 2025

Thanks! No idea why this surfaces now?!

Maybe some package removed which from their deps

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Feb 28, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants