question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`ng build` throws after `ng add @angular/bazel`

See original GitHub issue

🐞 bug report

Affected Package

@angular/bazel

Is this a regression?

No

Description

~/Projects/real-world-bazel master* ng add @angular/bazel --name app
~/Projects/real-world-bazel master* ng build
Could not run bazel. Please make sure that the "bazel" command is installed by running "npm install @bazel/bazel" or "yarn install @bazel/bazel".
Error: Could not run bazel. Please make sure that the "bazel" command is installed by running "npm install @bazel/bazel" or "yarn install @bazel/bazel".
    at Object.checkInstallation (/Users/mgechev/Projects/real-world-bazel/node_modules/@angular/bazel/src/builders/bazel.js:63:23)
    at BazelBuilder.run (/Users/mgechev/Projects/real-world-bazel/node_modules/@angular/bazel/src/builders/index.js:34:34)
    at MergeMapSubscriber.getBuilderDescription.pipe.operators_1.concatMap.builder [as project] (/Users/mgechev/Projects/real-world-bazel/node_modules/@angular-devkit/architect/src/architect-legacy.js:142:415)
    at MergeMapSubscriber._tryNext (/Users/mgechev/Projects/real-world-bazel/node_modules/@angular-devkit/architect/node_modules/rxjs/internal/operators/mergeMap.js:69:27)
    at MergeMapSubscriber._next (/Users/mgechev/Projects/real-world-bazel/node_modules/@angular-devkit/architect/node_modules/rxjs/internal/operators/mergeMap.js:59:18)
    at MergeMapSubscriber.Subscriber.next (/Users/mgechev/Projects/real-world-bazel/node_modules/@angular-devkit/architect/node_modules/rxjs/internal/Subscriber.js:66:18)
    at MapSubscriber._next (/Users/mgechev/Projects/real-world-bazel/node_modules/@angular-devkit/architect/node_modules/rxjs/internal/operators/map.js:55:26)
    at MapSubscriber.Subscriber.next (/Users/mgechev/Projects/real-world-bazel/node_modules/@angular-devkit/architect/node_modules/rxjs/internal/Subscriber.js:66:18)
    at TapSubscriber._next (/Users/mgechev/Projects/real-world-bazel/node_modules/@angular-devkit/architect/node_modules/rxjs/internal/operators/tap.js:65:26)
    at TapSubscriber.Subscriber.next (/Users/mgechev/Projects/real-world-bazel/node_modules/@angular-devkit/architect/node_modules/rxjs/internal/Subscriber.js:66:18)
    at MergeMapSubscriber.notifyNext (/Users/mgechev/Projects/real-world-bazel/node_modules/@angular-devkit/architect/node_modules/rxjs/internal/operators/mergeMap.js:92:26)
    at InnerSubscriber._next (/Users/mgechev/Projects/real-world-bazel/node_modules/@angular-devkit/architect/node_modules/rxjs/internal/InnerSubscriber.js:28:21)
    at InnerSubscriber.Subscriber.next (/Users/mgechev/Projects/real-world-bazel/node_modules/@angular-devkit/architect/node_modules/rxjs/internal/Subscriber.js:66:18)
    at SafeSubscriber.__tryOrUnsub (/Users/mgechev/Projects/real-world-bazel/node_modules/@angular-devkit/core/node_modules/rxjs/internal/Subscriber.js:207:16)
    at SafeSubscriber.next (/Users/mgechev/Projects/real-world-bazel/node_modules/@angular-devkit/core/node_modules/rxjs/internal/Subscriber.js:145:22)
    at Subscriber._next (/Users/mgechev/Projects/real-world-bazel/node_modules/@angular-devkit/core/node_modules/rxjs/internal/Subscriber.js:89:26)
    at Subscriber.next (/Users/mgechev/Projects/real-world-bazel/node_modules/@angular-devkit/core/node_modules/rxjs/internal/Subscriber.js:66:18)
    at SafeSubscriber.__tryOrUnsub (/Users/mgechev/Projects/real-world-bazel/node_modules/@angular-devkit/architect/node_modules/rxjs/internal/Subscriber.js:207:16)
    at SafeSubscriber.next (/Users/mgechev/Projects/real-world-bazel/node_modules/@angular-devkit/architect/node_modules/rxjs/internal/Subscriber.js:145:22)
    at MapSubscriber._next (/Users/mgechev/Projects/real-world-bazel/node_modules/@angular-devkit/architect/node_modules/rxjs/internal/operators/map.js:55:26)
    at MapSubscriber.Subscriber.next (/Users/mgechev/Projects/real-world-bazel/node_modules/@angular-devkit/architect/node_modules/rxjs/internal/Subscriber.js:66:18)
    at SafeSubscriber.__tryOrUnsub (/Users/mgechev/Projects/real-world-bazel/node_modules/@angular-devkit/core/node_modules/rxjs/internal/Subscriber.js:207:16)
    at SafeSubscriber.next (/Users/mgechev/Projects/real-world-bazel/node_modules/@angular-devkit/core/node_modules/rxjs/internal/Subscriber.js:145:22)
    at Subscriber._next (/Users/mgechev/Projects/real-world-bazel/node_modules/@angular-devkit/core/node_modules/rxjs/internal/Subscriber.js:89:26)
    at Subscriber.next (/Users/mgechev/Projects/real-world-bazel/node_modules/@angular-devkit/core/node_modules/rxjs/internal/Subscriber.js:66:18)
    at MergeMapSubscriber.notifyNext (/Users/mgechev/Projects/real-world-bazel/node_modules/@angular-devkit/core/node_modules/rxjs/internal/operators/mergeMap.js:92:26)
    at InnerSubscriber._next (/Users/mgechev/Projects/real-world-bazel/node_modules/@angular-devkit/core/node_modules/rxjs/internal/InnerSubscriber.js:28:21)
    at InnerSubscriber.Subscriber.next (/Users/mgechev/Projects/real-world-bazel/node_modules/@angular-devkit/core/node_modules/rxjs/internal/Subscriber.js:66:18)

πŸ”¬ Minimal Reproduction

ng add @angular/bazel --name app
ng build

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
kyliaucommented, Apr 15, 2019

Unfortunately, the fix didn’t make the beta 12 release. It’ll be in beta 13.

0reactions
angular-automatic-lock-bot[bot]commented, Sep 14, 2019

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Building with Bazel - Angular
The @angular/bazel package provides a builder that allows Angular CLI to use Bazel as the build tool. To opt-in an existing application, run....
Read more >
Angular compiler options
When you use the Angular CLI command ng new --strict , it is set to true in the new project's configuration. trace link....
Read more >
Nx is Modern Angular
The Angular team attempted to integrate Bazel into the Angular CLI, but that effort has been canceled. Nx builds on inspiration from Bazel...
Read more >
angular/angular-cli - Gitter
Hi Guys! We have a problem to launch our Angular 8 app on cordova, because of differential loading, any suggestions for this issue:...
Read more >
Angular 12 in Depth - SΓ©bastien Dubois
Since Angular 9, Ivy has been the default for new projects, ... As of Angular 12, ng build will now default to a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found