failed to run ng build with Bazel's opt-in preview on windows 10 1903
See original GitHub issue🐞 Bug report
Command (mark with an x
)
- [ ] new
- [x] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc
Is this a regression?
No.
Description
I’m using Windows 10 version 1903 (Build 10.0.18362.175). Here are the command I used below:
npm install -g @bazel/bazel @angular/bazel
ng new demo3 --collection=@angular/bazel --style css --routing --skip-git
ng build
🔥 Exception or Error
G:\Projects\demo3> ng build
Starting local Bazel server and connecting to it...
INFO: SHA256 (https://github.com/manekinekko/rules_sass/archive/9862dfc96a4a1f66fe171ef5e043b29853e8445b.zip) = 6035f25dbcd1e5575a681f5d7b9d9821dde09fcf73ccea053d1bc1c9523b1a2a
DEBUG: Rule 'io_bazel_rules_sass' indicated that a canonical reproducible form can be obtained by modifying arguments sha256 = "6035f25dbcd1e5575a681f5d7b9d9821dde09fcf73ccea053d1bc1c9523b1a2a"
INFO: Analyzed target //src:prodapp (512 packages loaded, 17873 targets configured).
INFO: Found 1 target...
ERROR: G:/projects/demo3/src/BUILD.bazel:10:1: SassCompiler src/global_stylesheet.css failed (Exit 127)
/bin/bash: C:\users\user\_bazel_user\bobtdbm2\execroot\project\bazel-out\host\bin\external\io_bazel_rules_sass\sass\sass: command not found
Target //src:prodapp failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 453.200s, Critical Path: 3.04s
INFO: 0 processes.
FAILED: Build did NOT complete successfully
G:\Projects\demo3\node_modules\@bazel\bazel\node_modules\@bazel\bazel-win32_x64\bazel-0.26.1-windows-x86_64.exe failed with code 1.
🌍 Your Environment
_ _ ____ _ ___
/ \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
/ △ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | |
/ ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | |
/_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___|
|___/
Angular CLI: 8.0.3
Node: 10.16.0
OS: win32 x64
Angular: 8.0.2
... animations, bazel, common, compiler, compiler-cli, core
... forms, language-service, platform-browser
... platform-browser-dynamic, router
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.800.3
@angular-devkit/build-angular 0.800.3
@angular-devkit/build-optimizer 0.800.3
@angular-devkit/build-webpack 0.800.3
@angular-devkit/core 8.0.3
@angular-devkit/schematics 8.0.3
@angular/cli 8.0.3
@bazel/bazel 0.26.1
@bazel/ibazel 0.10.3
@bazel/karma 0.31.1
@bazel/typescript 0.31.1
@ngtools/webpack 8.0.3
@schematics/angular 8.0.3
@schematics/update 0.800.3
rxjs 6.4.0
typescript 3.4.5
webpack 4.30.0
Anything else relevant?
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (6 by maintainers)
Top Results From Across the Web
failed to run ng build with Bazel's opt-in preview on windows ...
No. Description. I'm using Windows 10 version 1903 (Build 10.0.18362.175). Here are the command I used below: npm install -g @bazel/bazel @ ...
Read more >Unable to upgrade to windows 10 build 1903, AMD RAID ...
I am currently trying to install the windows 10 1903 build update, my current version is 1803. I get the following error message, ......
Read more >Try Bazel's opt-in preview in Angular CLI
Once you create the new project with the Bazel schematics you and run ng serve or ng build the same way you're used...
Read more >Angular 8 - Bazel Walkthrough - Bits and Pieces - Bit.dev
Angular 8 provides an opt-in preview mode for Bazel, ... With this done, whenever we run Angular CLI build commands ( ng build...
Read more >Windows 10 update KB4586819 releases for version 1909 ...
KB4586819 is now available as preview for Windows 10 version 1909 and 1903 with a slew of fixes, and here's all you need...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@meteorcloudy I already have
PATH
configured correctly. I never know there is a requirement forBAZEL_SH
environment variable. After I add this to my user variables, everything works!Thank you so much! 😍
I think this should be added to the Building with Bazel docs.
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.