gurezo / ng-bazel-sample

this is angular opt in bazel sample
0 stars 0 forks source link

build error #2

Closed gurezo closed 5 years ago

gurezo commented 5 years ago
➜  ng-bazel-sample git:(master) ng build
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"
ERROR: /private/var/tmp/_bazel_lifewood/55e2e676c374e1a534444472789d2c28/external/local_config_cc/BUILD:55:5: in apple_cc_toolchain rule @local_config_cc//:cc-compiler-darwin_x86_64: Xcode version must be specified to use an Apple CROSSTOOL. If your Xcode version has changed recently, verify that "xcode-select -p" is correct and then try: "bazel shutdown" to re-run Xcode configuration
ERROR: Analysis of target '//src:prodapp' failed; build aborted: Analysis of target '@local_config_cc//:cc-compiler-darwin_x86_64' failed; build aborted
INFO: Elapsed time: 246.700s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (264 packages loaded, 15447 targets configured)
    Fetching @build_bazel_rules_sass_deps; Running yarn install on @io_bazel_rules_sass//sass:package.json 9s
    Fetching @build_bazel_rules_nodejs_rollup_deps; Running yarn install on @build_bazel_rules_nodejs//internal/rollup:package.json 8s
/Users/lifewood/work/ng-bazel-sample/node_modules/@bazel/bazel/node_modules/@bazel/bazel-darwin_x64/bazel-0.26.1-darwin-x86_64 failed with code 1.
gurezo commented 5 years ago
➜  ng-bazel-sample git:(master) ng build --prod
Extracting Bazel installation...
Starting local Bazel server and connecting to it...
INFO: Call stack for the definition of repository 'nodejs' which is a _nodejs_repo (rule definition at /private/var/tmp/_bazel_lifewood/55e2e676c374e1a534444472789d2c28/external/build_bazel_rules_nodejs/internal/node/node_repositories.bzl:453:16):
 - /private/var/tmp/_bazel_lifewood/55e2e676c374e1a534444472789d2c28/external/build_bazel_rules_nodejs/internal/node/node_repositories.bzl:627:9
 - /private/var/tmp/_bazel_lifewood/55e2e676c374e1a534444472789d2c28/external/build_bazel_rules_nodejs/internal/node/node_repositories.bzl:570:5
 - /Users/lifewood/work/ng-bazel-sample/WORKSPACE:58:1
ERROR: An error occurred during the fetch of repository 'nodejs':
   Traceback (most recent call last):
    File "/private/var/tmp/_bazel_lifewood/55e2e676c374e1a534444472789d2c28/external/build_bazel_rules_nodejs/internal/node/node_repositories.bzl", line 450
        _download_yarn(repository_ctx)
    File "/private/var/tmp/_bazel_lifewood/55e2e676c374e1a534444472789d2c28/external/build_bazel_rules_nodejs/internal/node/node_repositories.bzl", line 171, in _download_yarn
        repository_ctx.download_and_extract(url = [url.format(version = yarn...], <3 more arguments>)
java.io.IOException: Error downloading [https://mirror.bazel.build/github.com/yarnpkg/yarn/releases/download/v1.13.0/yarn-v1.13.0.tar.gz, https://github.com/yarnpkg/yarn/releases/download/v1.13.0/yarn-v1.13.0.tar.gz] to /private/var/tmp/_bazel_lifewood/55e2e676c374e1a534444472789d2c28/external/nodejs/bin/yarnpkg/yarn-v1.13.0.tar.gz: All mirrors are down: [GET returned 404 Not Found, connect timed out]
ERROR: error loading package '': Encountered error while reading extension file 'install_bazel_dependencies.bzl': no such package '@npm//': no such package '@nodejs//': Traceback (most recent call last):
    File "/private/var/tmp/_bazel_lifewood/55e2e676c374e1a534444472789d2c28/external/build_bazel_rules_nodejs/internal/node/node_repositories.bzl", line 450
        _download_yarn(repository_ctx)
    File "/private/var/tmp/_bazel_lifewood/55e2e676c374e1a534444472789d2c28/external/build_bazel_rules_nodejs/internal/node/node_repositories.bzl", line 171, in _download_yarn
        repository_ctx.download_and_extract(url = [url.format(version = yarn...], <3 more arguments>)
java.io.IOException: Error downloading [https://mirror.bazel.build/github.com/yarnpkg/yarn/releases/download/v1.13.0/yarn-v1.13.0.tar.gz, https://github.com/yarnpkg/yarn/releases/download/v1.13.0/yarn-v1.13.0.tar.gz] to /private/var/tmp/_bazel_lifewood/55e2e676c374e1a534444472789d2c28/external/nodejs/bin/yarnpkg/yarn-v1.13.0.tar.gz: All mirrors are down: [GET returned 404 Not Found, connect timed out]
ERROR: error loading package '': Encountered error while reading extension file 'install_bazel_dependencies.bzl': no such package '@npm//': no such package '@nodejs//': Traceback (most recent call last):
    File "/private/var/tmp/_bazel_lifewood/55e2e676c374e1a534444472789d2c28/external/build_bazel_rules_nodejs/internal/node/node_repositories.bzl", line 450
        _download_yarn(repository_ctx)
    File "/private/var/tmp/_bazel_lifewood/55e2e676c374e1a534444472789d2c28/external/build_bazel_rules_nodejs/internal/node/node_repositories.bzl", line 171, in _download_yarn
        repository_ctx.download_and_extract(url = [url.format(version = yarn...], <3 more arguments>)
java.io.IOException: Error downloading [https://mirror.bazel.build/github.com/yarnpkg/yarn/releases/download/v1.13.0/yarn-v1.13.0.tar.gz, https://github.com/yarnpkg/yarn/releases/download/v1.13.0/yarn-v1.13.0.tar.gz] to /private/var/tmp/_bazel_lifewood/55e2e676c374e1a534444472789d2c28/external/nodejs/bin/yarnpkg/yarn-v1.13.0.tar.gz: All mirrors are down: [GET returned 404 Not Found, connect timed out]
INFO: Elapsed time: 35.516s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
    Fetching @npm; Restarting. 15s
/Users/lifewood/work/ng-bazel-sample/node_modules/@bazel/bazel/node_modules/@bazel/bazel-darwin_x64/bazel-0.26.1-darwin-x86_64 failed with code 1.
➜  ng-bazel-sample git:(master) 
gurezo commented 5 years ago

--prodオプションは不要

gurezo commented 5 years ago

ng update @angular/cli@next でもエラー https://github.com/gurezo/ng-bazel-sample/commit/c4a6ba41ba91330487f7e78c6a89d77d76809627

➜  ng-bazel-sample git:(master) ng build
Starting local Bazel server and connecting to it...
ERROR: /private/var/tmp/_bazel_lifewood/55e2e676c374e1a534444472789d2c28/external/local_config_cc/BUILD:55:5: in apple_cc_toolchain rule @local_config_cc//:cc-compiler-darwin_x86_64: Xcode version must be specified to use an Apple CROSSTOOL. If your Xcode version has changed recently, verify that "xcode-select -p" is correct and then try: "bazel shutdown" to re-run Xcode configuration
ERROR: Analysis of target '//src:prodapp' failed; build aborted: Analysis of target '@local_config_cc//:cc-compiler-darwin_x86_64' failed; build aborted
INFO: Elapsed time: 346.768s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (38 packages loaded, 157 targets configured)
    Fetching @build_bazel_rules_sass_deps; Running yarn install on @io_bazel_rules_sass//sass:package.json
    Fetching @build_bazel_rules_nodejs_rollup_deps; Running yarn install on @build_bazel_rules_nodejs//internal/rollup:package.json
/Users/lifewood/work/ng-bazel-sample/node_modules/@bazel/bazel/node_modules/@bazel/bazel-darwin_x64/bazel-0.26.1-darwin-x86_64 failed with code 1.
ronakpandya7 commented 5 years ago

Hello @gurezo,

I am facing the same issue.

Did you get any success?

gurezo commented 5 years ago

Hi @ronakpandya7 , The build is not yet successful.

Do you have anything to try? All I'm thinking about is brew install bazel.

now, retrying ng build.

ronakpandya7 commented 5 years ago

I already did with bazel build command as well as ng build command but same output I am not understanding why it going in fetching state:

Bazel is trying to load load("@io_bazel_rules_sass//:defs.bzl", "multi_sass_binary", "sass_binary") and load("@build_bazel_rules_nodejs//:defs.bzl", "rollup_bundle", "history_server") from the BUILD.Bazel file.

But in fetching state always...

gurezo commented 5 years ago

If so, it may be better to make an issue on bazel or angular ...

See and think about the results of the build you are doing I can not expect much, but ...

ronakpandya7 commented 5 years ago

Ohk then let me create an issue, lets see what they are saying

gurezo commented 5 years ago

@ronakpandya7 Thank you very much. This build is 15 minutes over, so I interrupted it.

➜  ng-bazel-sample git:(master) ng build
Starting local Bazel server and connecting to it...
Loading: 0 packages loaded
    Fetching @npm; Running yarn install on //:package.json 1011s
gurezo commented 5 years ago
➜  ng-bazel-sample git:(master) ✗ rm -rf node_modules
➜  ng-bazel-sample git:(master) ✗ npm i

> fsevents@1.2.9 install /Users/lifewood/work/ng-bazel-sample/node_modules/@angular/compiler-cli/node_modules/fsevents
> node install

node-pre-gyp WARN Using request for node-pre-gyp https download
[fsevents] Success: "/Users/lifewood/work/ng-bazel-sample/node_modules/@angular/compiler-cli/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node" is installed via remote

> fsevents@1.2.9 install /Users/lifewood/work/ng-bazel-sample/node_modules/karma/node_modules/fsevents
> node install

node-pre-gyp WARN Using request for node-pre-gyp https download
[fsevents] Success: "/Users/lifewood/work/ng-bazel-sample/node_modules/karma/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node" is installed via remote

> fsevents@1.2.9 install /Users/lifewood/work/ng-bazel-sample/node_modules/watchpack/node_modules/fsevents
> node install

node-pre-gyp WARN Using request for node-pre-gyp https download
[fsevents] Success: "/Users/lifewood/work/ng-bazel-sample/node_modules/watchpack/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node" is installed via remote

> fsevents@1.2.9 install /Users/lifewood/work/ng-bazel-sample/node_modules/webpack-dev-server/node_modules/fsevents
> node install

node-pre-gyp WARN Using request for node-pre-gyp https download
[fsevents] Success: "/Users/lifewood/work/ng-bazel-sample/node_modules/webpack-dev-server/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node" is installed via remote

> core-js@2.6.9 postinstall /Users/lifewood/work/ng-bazel-sample/node_modules/babel-runtime/node_modules/core-js
> node scripts/postinstall || echo "ignore"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

> core-js@3.1.4 postinstall /Users/lifewood/work/ng-bazel-sample/node_modules/core-js
> node scripts/postinstall || echo "ignore"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

> core-js@2.6.9 postinstall /Users/lifewood/work/ng-bazel-sample/node_modules/karma/node_modules/core-js
> node scripts/postinstall || echo "ignore"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

> protobufjs@6.8.8 postinstall /Users/lifewood/work/ng-bazel-sample/node_modules/protobufjs
> node scripts/postinstall

> sauce-connect-launcher@1.2.7 postinstall /Users/lifewood/work/ng-bazel-sample/node_modules/sauce-connect-launcher
> node scripts/install.js || nodejs scripts/install.js

> @angular/cli@8.1.0-rc.0 postinstall /Users/lifewood/work/ng-bazel-sample/node_modules/@angular/cli
> node ./bin/postinstall/script.js

(node:18356) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 SIGINT listeners added. Use emitter.setMaxListeners() to increase limit

> ng-bazel-sample@0.0.0 postinstall /Users/lifewood/work/ng-bazel-sample
> ngc -p ./angular-metadata.tsconfig.json

npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @bazel/bazel-win32_x64@0.26.1 (node_modules/@bazel/bazel/node_modules/@bazel/bazel-win32_x64):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @bazel/bazel-win32_x64@0.26.1: wanted {"os":"win32","arch":"any"} (current: {"os":"darwin","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @bazel/bazel-linux_x64@0.26.1 (node_modules/@bazel/bazel/node_modules/@bazel/bazel-linux_x64):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @bazel/bazel-linux_x64@0.26.1: wanted {"os":"linux","arch":"any"} (current: {"os":"darwin","arch":"x64"})

added 1424 packages from 1167 contributors and audited 19937 packages in 83.198s
found 0 vulnerabilities

➜  ng-bazel-sample git:(master) ✗ ng build
ERROR: /private/var/tmp/_bazel_lifewood/55e2e676c374e1a534444472789d2c28/external/local_config_cc/BUILD:55:5: in apple_cc_toolchain rule @local_config_cc//:cc-compiler-darwin_x86_64: Xcode version must be specified to use an Apple CROSSTOOL. If your Xcode version has changed recently, verify that "xcode-select -p" is correct and then try: "bazel shutdown" to re-run Xcode configuration
ERROR: Analysis of target '//src:prodapp' failed; build aborted: Analysis of target '@local_config_cc//:cc-compiler-darwin_x86_64' failed; build aborted
INFO: Elapsed time: 132.000s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (38 packages loaded, 141 targets configured)
    Fetching @build_bazel_rules_sass_deps; Running yarn install on @io_bazel_rules_sass//sass:package.json
    Fetching @build_bazel_rules_nodejs_rollup_deps; Running yarn install on @build_bazel_rules_nodejs//internal/rollup:package.json
/Users/lifewood/work/ng-bazel-sample/node_modules/@bazel/bazel/node_modules/@bazel/bazel-darwin_x64/bazel-0.26.1-darwin-x86_64 failed with code 1.
➜  ng-bazel-sample git:(master) 
gurezo commented 5 years ago

@ronakpandya7 now build success!

What I did was the following

logs

➜  ng-bazel-sample git:(master) ✗ sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
Password:
➜  ng-bazel-sample git:(master) ✗ sudo xcodebuild -license
Apple Inc.

Xcode and Apple SDKs Agreement

PLEASE SCROLL DOWN AND READ ALL OF THE FOLLOWING TERMS AND CONDITIONS CAREFULLY BEFORE USING THE APPLE SOFTWARE OR APPLE SERVICES.  THIS IS A LEGAL AGREEMENT BETWEEN YOU AND APPLE.  IF YOU AGREE TO BE BOUND BY ALL OF THE TERMS AND CONDITIONS, CLICK THE “AGREE” BUTTON.  BY CLICKING “AGREE” OR BY DOWNLOADING, USING OR COPYING ANY PART OF THIS APPLE SOFTWARE OR USING ANY PART OF THE APPLE SERVICES, YOU ARE AGREEING ON YOUR OWN BEHALF AND/OR ON BEHALF OF YOUR COMPANY OR ORGANIZATION TO THE TERMS AND CONDITIONS STATED BELOW.  IF YOU DO NOT OR CANNOT AGREE TO THE TERMS OF THIS AGREEMENT, YOU CANNOT USE THIS APPLE SOFTWARE OR THE APPLE SERVICES.  DO NOT DOWNLOAD OR USE THIS APPLE SOFTWARE OR APPLE SERVICES IN THAT CASE.

1.      Definitions
Whenever capitalized in this Agreement:

“Agreement” means this Xcode and Apple SDKs Agreement.

“Apple” means Apple Inc., a California corporation with its principal place of business at One Infinite Loop, Cupertino, California 95014, U.S.A.

“Apple Developer Program License Agreement” means a separate agreement that may be entered into between You and Apple regarding the development and submission of Applications to the App Store for approval and digital signing by Apple, development of libraries for iOS, watchOS, and/or tvOS, and the use of Apple services such as the Apple Push Notification Service, In-App Purchase, and iCloud, among other things.

“Apple Maps Service” means the mapping platform and Map Data provided by Apple via the MapKit API (which is the documented API that enables You to add mapping features or functionality to Applications).

“Apple Services” or “Services” means the developer services that Apple provides to You under this Agreement solely for use with Your Applications and not for use by You as an end-user (e.g., Game Center, Apple Maps Service, any Apple-certificate issuance services, etc.), including any Updates thereto (if any) that may be provided to You by Apple.

“Apple Software” means the Xcode Developer Tools and the Apple SDKs, including any Updates thereto (if any) that may be provided to You by Apple.

“Apple SDKs” means the macOS SDK, and the Apple-proprietary Software Development Kits (SDKs) provided hereunder, including but not limited to header files, APIs, libraries, simulators, and software (source code and object code) labeled as part of the iOS SDK, watchOS SDK and/or tvOS SDK and included in the Xcode Developer Tools package for purposes of targeting Apple-branded products running iOS, watchOS, or tvOS.

“Application” means a software program (including extensions and media that are enclosed in a single software bundle) developed by You hereunder, for use under Your own name, trademark or brand, and specifically for use on Apple-branded products running macOS, iOS, watchOS, tvOS, as applicable, including new releases and new versions of such software program, but excluding libraries for iOS, watchOS, or tvOS applications.

For clarity, the term Application as used in this Agreement excludes libraries that are for use in Applications designed for iOS, watchOS, or tvOS.  Such libraries can be developed by You only under the terms of the Apple Developer Program License Agreement.

“Authorized Developers” means Your employees and contractors, members of Your organization or, if You are an educational institution, Your faculty, staff and students, who: (a) have a demonstrable need to know or use the Apple Software or Apple Services in order to develop and test Applications, and (b) to the extent they will access Apple Confidential Information, have written and binding agreements with You that prohibit the unauthorized use and disclosure of such confidential information.

“Authorized Test Units” means Apple-branded hardware units owned or controlled by You that have been designated by You for Your own testing and development purposes, and, if You permit, Apple-branded hardware units owned or controlled by Your Authorized Developers so long as such units are used for testing and development purposes on Your behalf and only as permitted hereunder.

“Documentation” means the technical or other specifications or documentation that Apple may provide to You for use in connection with the Apple Software, Apple Services, Apple certificates, or as otherwise provided hereunder.

“FOSS” (Free and Open Source Software) means any software that is subject to terms that, as a condition of use, copying, modification or redistribution, require such software and/or derivative works thereof to be disclosed or distributed in source code form, to be licensed for the purpose of making derivative works, or to be redistributed free of charge, including without limitation software distributed under the GNU General Public License or GNU Lesser/Library GPL.

“macOS SDK” means the Apple-proprietary Software Development Kits (SDKs) provided hereunder, including but not limited to header files, APIs, libraries, simulators, and software (source code and object code) labeled as part of the macOS SDK and included in the Xcode Developer Tools package for purposes of targeting Apple-branded products running macOS.

“Map Data” means any content, data or information provided through the Apple Maps Service including, but not limited to, imagery, terrain data, latitude and longitude coordinates, transit data, points of interest and traffic data.

“Program Requirements” mean the technical, human interface, design, product category, security, performance, and other criteria and requirements for Applications specified by Apple in the Apple Developer Program License Agreement.

“Provisioning Profiles” means the time-limited files (including applicable entitlements, certificates or other identifiers) that may be provided by Apple for use by You in connection with Your Application development and testing.

“Updates” means bug fixes, updates, upgrades, modifications, enhancements and supplements to the Apple Software or Apple Services, and any new releases or versions thereof.

“Xcode Developer Tools” means the Apple-proprietary development platform, including but not limited to software tools, compilers, sample code, Documentation, programming languages, and overall design package provided by Apple hereunder, excluding the Apple SDKs.

“You” or “Your” means the person(s) or entity using the Apple Software or Services or otherwise exercising rights under this Agreement.  If You are entering into this Agreement on behalf of Your company, organization, educational institution, or an agency, instrumentality, or department of the federal government, “

By typing 'agree' you are agreeing to the terms of the software license agreements. Type 'print' to print them or anything else to cancel, [agree, print, cancel] q

You can view the license agreements in Xcode's About Box, or at /Applications/Xcode.app/Contents/Resources/English.lproj/License.rtf

➜  ng-bazel-sample git:(master) ✗
➜  ng-bazel-sample git:(master) ✗ bazel clean --expunge
zsh: command not found: bazel
➜  ng-bazel-sample git:(master) ✗ clear
➜  ng-bazel-sample git:(master) ✗ ng build
INFO: Analyzed target //src:prodapp (485 packages loaded, 22708 targets configured).
INFO: Found 1 target...
Target //src:prodapp up-to-date:
  dist/bin/src/prodapp
INFO: Elapsed time: 82.663s, Critical Path: 48.69s
INFO: 7 processes: 6 local, 1 worker.
INFO: Build completed successfully, 8179 total actions
➜  ng-bazel-sample git:(master) ✗
ronakpandya7 commented 5 years ago

So basically you just deleted node_modules and then reinstall node_modules, and it works ? Strange.. let me try then..

gurezo commented 5 years ago

I noticed the following error code

ERROR: /private/var/tmp/_bazel_lifewood/55e2e676c374e1a534444472789d2c28/external/local_config_cc/BUILD:55:5: in apple_cc_toolchain rule @local_config_cc//:cc-compiler-darwin_x86_64: Xcode version must be specified to use an Apple CROSSTOOL. If your Xcode version has changed recently, verify that "xcode-select -p" is correct and then try: "bazel shutdown" to re-run Xcode configuration

i thought that Xcode configuration was strange and investigated. The survey results will be the following link

Xcode configuration seems to be more of a problem than bazel.

gurezo commented 5 years ago

The build was successful, so close

ronakpandya7 commented 5 years ago

Hello @gurezo Deleting node_module didn't worked for me...

And one more error i am facing is:

INFO: Analyzed target //src:prodapp (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
ERROR: /home/ilink/hybridapp/hybridApp/src/BUILD.bazel:24:1: Compiling Angular templates (ngc) //src:src failed (Exit 1)
src/app/app.module.ts(3,52): error TS2307: Cannot find module '@angular/upgrade/static'.
src/app/app.module.ts(4,36): error TS2307: Cannot find module '@angular/upgrade/static'.
src/app/app.module.ts(5,26): error TS2307: Cannot find module 'angular'.

I have added "@angular/upgrade" mudule as well but still getting this error.

What can i do here? is this some kind of bug?

ronakpandya7 commented 5 years ago

/reopen

gurezo commented 5 years ago

Hi @ronakpandya7 Hm ... I'm confused... I can not judge only by the error code and the situation ....

My Proposal

Is it possible to build my sample code with git clone?

my sample code build it.

referrence

It is a blog that I referred to this time

The following command was executed before creating a project

Please try one of them

gurezo commented 5 years ago

my pc enviroment

➜  ng-bazel-sample git:(master) npm -v
6.9.2
➜  ng-bazel-sample git:(master) node -v
v10.14.1
➜  ng-bazel-sample git:(master) java -version
java version "1.8.0_77"
Java(TM) SE Runtime Environment (build 1.8.0_77-b03)
Java HotSpot(TM) 64-Bit Server VM (build 25.77-b03, mixed mode)
➜  ng-bazel-sample git:(master)
ronakpandya7 commented 5 years ago

Hello @gurezo

Below is my environment

bazel:~/mytest/src$ npm -v
6.9.0
bazel:~/mytest/src$ node -v
v10.16.0
bazel:~/mytest/src$ ng --version

Angular CLI: 8.0.6
Node: 10.16.0
OS: linux x64
Angular: 8.0.3
... animations, bazel, common, compiler, compiler-cli, core
... forms, language-service, platform-browser
... platform-browser-dynamic, router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.800.6
@angular-devkit/build-angular     0.800.6
@angular-devkit/build-optimizer   0.800.6
@angular-devkit/build-webpack     0.800.6
@angular-devkit/core              8.0.6
@angular-devkit/schematics        8.0.6
@angular/cli                      8.0.6
@bazel/bazel                      0.26.1
@bazel/ibazel                     0.10.3
@bazel/karma                      0.31.1
@bazel/typescript                 0.31.1
@ngtools/webpack                  8.0.6
@schematics/angular               8.0.6
@schematics/update                0.800.6
rxjs                              6.4.0
typescript                        3.4.5
webpack                           4.30.0

I dont think it is a platform problem because before some time it was working and suddenly it stopped working, fetching error

I already did npm install -g @angular/bazel

Do you want my bazel files?

gurezo commented 5 years ago

Hi @ronakpandya7 , thank you information.

I dont think it is a platform problem because before some time it was working and suddenly it stopped working, fetching error

Hm ... It is a problem that suddenly a fetch error occurs. Does the error occur when using package.json of this repository?

search word: angular/bazel suddenly it stopped working, fetching error result: https://www.google.com/search?client=firefox-b-d&q=angular%2Fbazel+suddenly+it+stopped+working%2C+fetching+error

Version information of this repository for reference

➜  ng-bazel-sample git:(master) ng --version
Your global Angular CLI version (8.1.0) is greater than your local
version (8.1.0-rc.0). The local Angular CLI version is used.

To disable this warning use "ng config -g cli.warnings.versionMismatch false".

     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/

Angular CLI: 8.1.0-rc.0
Node: 10.14.1
OS: darwin x64
Angular: 8.1.0-rc.0
... animations, bazel, cli, common, compiler, compiler-cli, core
... forms, language-service, platform-browser
... platform-browser-dynamic, router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.801.0-rc.0
@angular-devkit/build-angular     0.801.0-rc.0
@angular-devkit/build-optimizer   0.801.0-rc.0
@angular-devkit/build-webpack     0.801.0-rc.0
@angular-devkit/core              8.1.0-rc.0
@angular-devkit/schematics        8.0.6
@bazel/bazel                      0.26.1
@bazel/ibazel                     0.10.3
@bazel/karma                      0.31.1
@bazel/typescript                 0.32.2
@ngtools/webpack                  8.1.0-rc.0
@schematics/angular               8.0.6
@schematics/update                0.801.0-rc.0
rxjs                              6.5.2
typescript                        3.4.5
webpack                           4.35.0

The rc version contains the latest fixes, so is it easy to succeed? I have heard at events in the ng-japan community. Actually I put the rc version and built successfully.

Comment on fetch errors again if you know something

Thank you in advance

ronakpandya7 commented 5 years ago

Hello @gurezo, Did you get the same fetching error with Angular: 8.0.3 version ?

gurezo commented 5 years ago

Hi @ronakpandya7 when fetching error occured Angular: 8.0.1 8.0.4 version

https://github.com/gurezo/ng-bazel-sample/commit/c4a6ba41ba91330487f7e78c6a89d77d76809627#diff-b9cfc7f2cdf78a7f4b91a753d10865a2 https://github.com/gurezo/ng-bazel-sample/commit/c4a6ba41ba91330487f7e78c6a89d77d76809627

ronakpandya7 commented 5 years ago

ok let me try with rc version

gurezo commented 5 years ago

If you get fetch error even in rc version, remove package-lock.json and yarn.lock try npm install and build.

It is a quote from the following comment. https://github.com/angular/angular/issues/30350#issuecomment-491388253

ronakpandya7 commented 5 years ago

Hello @gurezo ,

ok after doing clean build and updating angular cli it is giving the following error:

ronak@ilink247:~/hybrid/hybridApp$ ng build --leaveBazelFilesOnDisk
Extracting Bazel installation...
WARNING: Waiting for server process to terminate (waited 5 seconds, waiting at most 60)
Starting local Bazel server and connecting to it...
INFO: Call stack for the definition of repository 'npm' which is a npm_install (rule definition at /home/ronak/.cache/bazel/_bazel_ronak/73c7b6f5c960da2626790b3cce25c800/external/build_bazel_rules_nodejs/internal/npm_install/npm_install.bzl:294:15):
 - /home/ronak/.cache/bazel/_bazel_ronak/73c7b6f5c960da2626790b3cce25c800/external/build_bazel_rules_nodejs/defs.bzl:77:5
 - /home/ronak/hybrid/hybridApp/WORKSPACE:64:1
ERROR: An error occurred during the fetch of repository 'npm':
   Traceback (most recent call last):
        File "/home/ronak/.cache/bazel/_bazel_ronak/73c7b6f5c960da2626790b3cce25c800/external/build_bazel_rules_nodejs/internal/npm_install/npm_install.bzl", line 292
                _create_build_files(repository_ctx, "npm_install", node, r...)
        File "/home/ronak/.cache/bazel/_bazel_ronak/73c7b6f5c960da2626790b3cce25c800/external/build_bazel_rules_nodejs/internal/npm_install/npm_install.bzl", line 146, in _create_build_files
                fail(("generate_build_file.js failed:...)))
generate_build_file.js failed:
STDOUT:

STDERR:
Could not find peer dependency 'jquery' of 'bootstrap'
ERROR: error loading package '': Encountered error while reading extension file 'install_bazel_dependencies.bzl': no such package '@npm//': Traceback (most recent call last):
        File "/home/ronak/.cache/bazel/_bazel_ronak/73c7b6f5c960da2626790b3cce25c800/external/build_bazel_rules_nodejs/internal/npm_install/npm_install.bzl", line 292
                _create_build_files(repository_ctx, "npm_install", node, r...)
        File "/home/ronak/.cache/bazel/_bazel_ronak/73c7b6f5c960da2626790b3cce25c800/external/build_bazel_rules_nodejs/internal/npm_install/npm_install.bzl", line 146, in _create_build_files
                fail(("generate_build_file.js failed:...)))
generate_build_file.js failed:
STDOUT:

STDERR:
Could not find peer dependency 'jquery' of 'bootstrap'
ERROR: error loading package '': Encountered error while reading extension file 'install_bazel_dependencies.bzl': no such package '@npm//': Traceback (most recent call last):
        File "/home/ronak/.cache/bazel/_bazel_ronak/73c7b6f5c960da2626790b3cce25c800/external/build_bazel_rules_nodejs/internal/npm_install/npm_install.bzl", line 292
                _create_build_files(repository_ctx, "npm_install", node, r...)
        File "/home/ronak/.cache/bazel/_bazel_ronak/73c7b6f5c960da2626790b3cce25c800/external/build_bazel_rules_nodejs/internal/npm_install/npm_install.bzl", line 146, in _create_build_files
                fail(("generate_build_file.js failed:...)))
generate_build_file.js failed:
STDOUT:

STDERR:
Could not find peer dependency 'jquery' of 'bootstrap'
INFO: Elapsed time: 120.466s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)

Package.json:


{
  "name": "hybrid-app",
  "version": "0.0.0",
  "scripts": {
    "ng": "ng",
    "postinstall": "ngc -p ./angular-metadata.tsconfig.json",
    "start": "ng serve --port 3010",
    "build": "ng build",
    "test": "ng test",
    "lint": "ng lint",
    "e2e": "ng e2e",
    "createBetaBuild": "gulp cssBuild && gulp deployApp --NODE_ENV test && ng build --prod"
  },
  "private": true,
  "dependencies": {
    "@angular/animations": "^8.2.0-next.0",
    "@angular/common": "^8.2.0-next.0",
    "@angular/compiler": "^8.2.0-next.0",
    "@angular/core": "^8.2.0-next.0",
    "@angular/forms": "^8.2.0-next.0",
    "@angular/platform-browser": "^8.2.0-next.0",
    "@angular/platform-browser-dynamic": "~8.0.0",
    "@angular/router": "^8.2.0-next.0",
    "@angular/upgrade": "^8.2.0-next.0",
    "angular": "^1.4.14",
    "bootstrap": "^4.3.1",
    "core-js": "^2.5.4",
    "gulp": "^4.0.2",
    "gulp-angular-filesort": "^1.2.1",
    "gulp-concat": "^2.6.1",
    "gulp-inject": "^5.0.2",
    "gulp-minify": "^3.1.0",
    "gulp-minify-css": "^1.2.4",
    "gulp-rename": "^1.4.0",
    "gulp-ssh": "^0.7.0",
    "gulp-uglify": "^3.0.2",
    "minimist": "^1.2.0",
    "moment": "^2.24.0",
    "rxjs": "~6.5.2",
    "tslib": "^1.9.0",
    "vinyl-paths": "^2.1.0",
    "zone.js": "~0.9.1"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "^0.801.0-rc.0",
    "@angular/bazel": "^8.1.0",
    "@angular/cli": "^8.1.0-rc.0",
    "@angular/compiler-cli": "^8.2.0-next.0",
    "@angular/language-service": "^8.2.0-next.0",
    "@bazel/bazel": "^0.27.0",
    "@bazel/ibazel": "^0.10.2",
    "@bazel/karma": "0.31.1",
    "@bazel/typescript": "0.31.1",
    "@types/jasmine": "~3.3.8",
    "@types/jasminewd2": "~2.0.3",
    "@types/node": "~8.9.4",
    "codelyzer": "^5.0.0",
    "jasmine-core": "~3.4.0",
    "jasmine-spec-reporter": "~4.2.1",
    "karma": "~4.1.0",
    "karma-chrome-launcher": "~2.2.0",
    "karma-coverage-istanbul-reporter": "~2.0.1",
    "karma-jasmine": "~2.0.1",
    "karma-jasmine-html-reporter": "^1.4.0",
    "protractor": "~5.4.0",
    "ts-node": "~7.0.0",
    "tslint": "~5.15.0",
    "typescript": "~3.4.3"
  }
}
gurezo commented 5 years ago

@ronakpandya7 oh.... I will try it with the same version as your package.json

Just in case, please try this procedure https://github.com/gurezo/ng-bazel-sample/issues/2#issuecomment-508460377

ronakpandya7 commented 5 years ago

Thanks for the quick reply @gurezo,

let me try

ronakpandya7 commented 5 years ago

ok one update,

I have installed npm install jquery@1.9.1 --save and now error changed

INFO: Call stack for the definition of repository 'npm' which is a npm_install (rule definition at /home/ronak/.cache/bazel/_bazel_ronak/73c7b6f5c960da2626790b3cce25c800/external/build_bazel_rules_nodejs/internal/npm_install/npm_install.bzl:294:15):
 - /home/ronak/.cache/bazel/_bazel_ronak/73c7b6f5c960da2626790b3cce25c800/external/build_bazel_rules_nodejs/defs.bzl:77:5
 - /home/ronak/hybrid/hybridApp/WORKSPACE:64:1
ERROR: An error occurred during the fetch of repository 'npm':
   Traceback (most recent call last):
        File "/home/ronak/.cache/bazel/_bazel_ronak/73c7b6f5c960da2626790b3cce25c800/external/build_bazel_rules_nodejs/internal/npm_install/npm_install.bzl", line 292
                _create_build_files(repository_ctx, "npm_install", node, r...)
        File "/home/ronak/.cache/bazel/_bazel_ronak/73c7b6f5c960da2626790b3cce25c800/external/build_bazel_rules_nodejs/internal/npm_install/npm_install.bzl", line 146, in _create_build_files
                fail(("generate_build_file.js failed:...)))
generate_build_file.js failed:
STDOUT:

STDERR:
Could not find peer dependency 'popper.js' of 'bootstrap'
ERROR: error loading package '': Encountered error while reading extension file 'install_bazel_dependencies.bzl': no such package '@npm//': Traceback (most recent call last):
        File "/home/ronak/.cache/bazel/_bazel_ronak/73c7b6f5c960da2626790b3cce25c800/external/build_bazel_rules_nodejs/internal/npm_install/npm_install.bzl", line 292
                _create_build_files(repository_ctx, "npm_install", node, r...)
        File "/home/ronak/.cache/bazel/_bazel_ronak/73c7b6f5c960da2626790b3cce25c800/external/build_bazel_rules_nodejs/internal/npm_install/npm_install.bzl", line 146, in _create_build_files
                fail(("generate_build_file.js failed:...)))
generate_build_file.js failed:
STDOUT:

STDERR:
Could not find peer dependency 'popper.js' of 'bootstrap'
ERROR: error loading package '': Encountered error while reading extension file 'install_bazel_dependencies.bzl': no such package '@npm//': Traceback (most recent call last):
        File "/home/ronak/.cache/bazel/_bazel_ronak/73c7b6f5c960da2626790b3cce25c800/external/build_bazel_rules_nodejs/internal/npm_install/npm_install.bzl", line 292
                _create_build_files(repository_ctx, "npm_install", node, r...)
        File "/home/ronak/.cache/bazel/_bazel_ronak/73c7b6f5c960da2626790b3cce25c800/external/build_bazel_rules_nodejs/internal/npm_install/npm_install.bzl", line 146, in _create_build_files
                fail(("generate_build_file.js failed:...)))
generate_build_file.js failed:
STDOUT:

STDERR:
Could not find peer dependency 'popper.js' of 'bootstrap'
INFO: Elapsed time: 31.587s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
gurezo commented 5 years ago

@ronakpandya7 greate! It is one step forward! your version building now.

ronakpandya7 commented 5 years ago

@gurezo after installing remaining packages it is giving the below error.

ERROR: /home/ronak/hybrid/hybridApp/src/BUILD.bazel:24:1: in ng_module rule //src:src:
Traceback (most recent call last):
        File "/home/ronak/hybrid/hybridApp/src/BUILD.bazel", line 24
                ng_module(name = 'src')
        File "/home/ronak/.cache/bazel/_bazel_ronak/73c7b6f5c960da2626790b3cce25c800/external/npm_angular_bazel/src/ng_module.bzl", line 592, in _ng_module_impl
                ts_providers_dict_to_struct(ng_module_impl(ctx, compile_ts))
        File "/home/ronak/.cache/bazel/_bazel_ronak/73c7b6f5c960da2626790b3cce25c800/external/npm_angular_bazel/src/ng_module.bzl", line 592, in ts_providers_dict_to_struct
                ng_module_impl(ctx, compile_ts)
        File "/home/ronak/.cache/bazel/_bazel_ronak/73c7b6f5c960da2626790b3cce25c800/external/npm_angular_bazel/src/ng_module.bzl", line 556, in ng_module_impl
                ts_compile_actions(ctx, is_library = True, deps = ctx.a..., <4 more arguments>)
        File "/home/ronak/.cache/bazel/_bazel_ronak/73c7b6f5c960da2626790b3cce25c800/external/npm_bazel_typescript/internal/common/compilation.bzl", line 302, in ts_compile_actions
                tsc_wrapped_tsconfig(ctx, compilation_inputs, srcs_files, j..., <3 more arguments>)
        File "/home/ronak/.cache/bazel/_bazel_ronak/73c7b6f5c960da2626790b3cce25c800/external/npm_angular_bazel/src/ng_module.bzl", line 324, in tsc_wrapped_tsconfig
                dict(tsc_wrapped_tsconfig(ctx, files,...), ...})
        File "/home/ronak/.cache/bazel/_bazel_ronak/73c7b6f5c960da2626790b3cce25c800/external/npm_angular_bazel/src/ng_module.bzl", line 324, in dict
                tsc_wrapped_tsconfig(ctx, files, srcs, **kwargs)
        File "/home/ronak/.cache/bazel/_bazel_ronak/73c7b6f5c960da2626790b3cce25c800/external/npm_bazel_typescript/internal/build_defs.bzl", line 194, in tsc_wrapped_tsconfig
                _compute_node_modules_root(ctx)
        File "/home/ronak/.cache/bazel/_bazel_ronak/73c7b6f5c960da2626790b3cce25c800/external/npm_bazel_typescript/internal/build_defs.bzl", line 63, in _compute_node_modules_root
                fail(("All npm dependencies need to c...)))
All npm dependencies need to come from a single workspace. Found 'external/npm/typescript/node_modules' and 'external/npm/node_modules'.
ERROR: Analysis of target '//src:prodapp' failed; build aborted: Analysis of target '//src:src' failed; build aborted
INFO: Elapsed time: 132.585s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (514 packages loaded, 29580 targets configured)
/home/ronak/hybrid/hybridApp/node_modules/@bazel/bazel/node_modules/@bazel/bazel-linux_x64/bazel-0.27.0-linux-x86_64 failed with code 1.

I am not getting this error - what they are trying to say here?

gurezo commented 5 years ago

@ronakpandya7 occured same error

➜  ng-bazel-sample git:(master) git checkout -b feature/ronakpandya7
Switched to a new branch 'feature/ronakpandya7'
➜  ng-bazel-sample git:(feature/ronakpandya7) rm -rf node_modules
➜  ng-bazel-sample git:(feature/ronakpandya7) ✗ rm -rf package-lock.json yarn.lock
➜  ng-bazel-sample git:(feature/ronakpandya7) ✗ ls -la
total 104
drwxr-xr-x  20 lifewood  staff   640  7  4 21:32 .
drwxr-xr-x  59 lifewood  staff  1888  6 28 20:29 ..
-rw-r--r--   1 lifewood  staff   246  6 25 23:43 .editorconfig
drwxr-xr-x  13 lifewood  staff   416  7  4 21:32 .git
-rw-r--r--   1 lifewood  staff   660  7  1 22:47 .gitignore
-rw-r--r--   1 lifewood  staff  1068  6 25 23:37 README.md
-rw-r--r--   1 lifewood  staff   731  6 25 23:43 angular-metadata.tsconfig.json
-rw-r--r--   1 lifewood  staff  2085  6 25 23:43 angular.json
-rw-r--r--   1 lifewood  staff  3631  6 25 23:43 angular.json.bak
lrwxr-xr-x   1 lifewood  staff    98  7  2 22:21 bazel-out -> /private/var/tmp/_bazel_lifewood/55e2e676c374e1a534444472789d2c28/execroot/project/bazel-out
-rw-r--r--   1 lifewood  staff   429  6 25 23:43 browserslist
drwxr-xr-x   7 lifewood  staff   224  7  2 22:21 dist
drwxr-xr-x   6 lifewood  staff   192  7  2 23:20 e2e
-rw-r--r--   1 lifewood  staff  1027  6 25 23:43 karma.conf.js
-rw-r--r--   1 lifewood  staff  2047  7  4 21:31 package.json
drwxr-xr-x  15 lifewood  staff   480  7  2 23:20 src
-rw-r--r--   1 lifewood  staff   210  6 25 23:43 tsconfig.app.json
-rw-r--r--   1 lifewood  staff   491  6 25 23:43 tsconfig.json
-rw-r--r--   1 lifewood  staff   270  6 25 23:43 tsconfig.spec.json
-rw-r--r--   1 lifewood  staff  1985  6 25 23:43 tslint.json
➜  ng-bazel-sample git:(feature/ronakpandya7) ✗ rm -rf bazel-out
➜  ng-bazel-sample git:(feature/ronakpandya7) ✗ npm i
npm WARN deprecated gulp-minify-css@1.2.4: Please use gulp-clean-css
npm WARN deprecated gulp-util@3.0.8: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN deprecated set-value@0.4.3: Critical bug fixed in v3.0.1, please upgrade to the latest version.

> fsevents@1.2.9 install /Users/lifewood/work/ng-bazel-sample/node_modules/fsevents
> node install

node-pre-gyp WARN Using request for node-pre-gyp https download
[fsevents] Success: "/Users/lifewood/work/ng-bazel-sample/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node" is installed via remote

> core-js@3.1.4 postinstall /Users/lifewood/work/ng-bazel-sample/node_modules/@angular-devkit/build-angular/node_modules/core-js
> node scripts/postinstall || echo "ignore"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

> core-js@2.6.9 postinstall /Users/lifewood/work/ng-bazel-sample/node_modules/core-js
> node scripts/postinstall || echo "ignore"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

> protobufjs@6.8.8 postinstall /Users/lifewood/work/ng-bazel-sample/node_modules/protobufjs
> node scripts/postinstall

> sauce-connect-launcher@1.2.7 postinstall /Users/lifewood/work/ng-bazel-sample/node_modules/sauce-connect-launcher
> node scripts/install.js || nodejs scripts/install.js

> @angular/cli@8.1.0 postinstall /Users/lifewood/work/ng-bazel-sample/node_modules/@angular/cli
> node ./bin/postinstall/script.js

> ng-bazel-sample@0.0.0 postinstall /Users/lifewood/work/ng-bazel-sample
> ngc -p ./angular-metadata.tsconfig.json

npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN @angular/platform-browser-dynamic@8.0.3 requires a peer of @angular/core@8.0.3 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/platform-browser-dynamic@8.0.3 requires a peer of @angular/common@8.0.3 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/platform-browser-dynamic@8.0.3 requires a peer of @angular/compiler@8.0.3 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/platform-browser-dynamic@8.0.3 requires a peer of @angular/platform-browser@8.0.3 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/upgrade@8.2.0-next.0 requires a peer of @angular/platform-browser-dynamic@8.2.0-next.0 but none is installed. You must install peer dependencies yourself.
npm WARN bootstrap@4.3.1 requires a peer of jquery@1.9.1 - 3 but none is installed. You must install peer dependencies yourself.
npm WARN bootstrap@4.3.1 requires a peer of popper.js@^1.14.7 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/bazel@8.1.0 requires a peer of @angular/compiler-cli@8.1.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @bazel/bazel-win32_x64@0.27.0 (node_modules/@bazel/bazel/node_modules/@bazel/bazel-win32_x64):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @bazel/bazel-win32_x64@0.27.0: wanted {"os":"win32","arch":"any"} (current: {"os":"darwin","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @bazel/bazel-linux_x64@0.27.0 (node_modules/@bazel/bazel/node_modules/@bazel/bazel-linux_x64):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @bazel/bazel-linux_x64@0.27.0: wanted {"os":"linux","arch":"any"} (current: {"os":"darwin","arch":"x64"})

added 1394 packages from 1235 contributors and audited 28931 packages in 100.708s
found 1 low severity vulnerability
  run `npm audit fix` to fix them, or `npm audit` for details
➜  ng-bazel-sample git:(feature/ronakpandya7) ✗ ng build
Extracting Bazel installation...
Starting local Bazel server and connecting to it...
INFO: Call stack for the definition of repository 'npm' which is a npm_install (rule definition at /private/var/tmp/_bazel_lifewood/55e2e676c374e1a534444472789d2c28/external/build_bazel_rules_nodejs/internal/npm_install/npm_install.bzl:294:15):
 - /private/var/tmp/_bazel_lifewood/55e2e676c374e1a534444472789d2c28/external/build_bazel_rules_nodejs/defs.bzl:77:5
 - /Users/lifewood/work/ng-bazel-sample/WORKSPACE:64:1
ERROR: An error occurred during the fetch of repository 'npm':
   Traceback (most recent call last):
    File "/private/var/tmp/_bazel_lifewood/55e2e676c374e1a534444472789d2c28/external/build_bazel_rules_nodejs/internal/npm_install/npm_install.bzl", line 292
        _create_build_files(repository_ctx, "npm_install", node, r...)
    File "/private/var/tmp/_bazel_lifewood/55e2e676c374e1a534444472789d2c28/external/build_bazel_rules_nodejs/internal/npm_install/npm_install.bzl", line 146, in _create_build_files
        fail(("generate_build_file.js failed:...)))
generate_build_file.js failed:
STDOUT:

STDERR:
Could not find peer dependency 'jquery' of 'bootstrap'
ERROR: error loading package '': Encountered error while reading extension file 'install_bazel_dependencies.bzl': no such package '@npm//': Traceback (most recent call last):
    File "/private/var/tmp/_bazel_lifewood/55e2e676c374e1a534444472789d2c28/external/build_bazel_rules_nodejs/internal/npm_install/npm_install.bzl", line 292
        _create_build_files(repository_ctx, "npm_install", node, r...)
    File "/private/var/tmp/_bazel_lifewood/55e2e676c374e1a534444472789d2c28/external/build_bazel_rules_nodejs/internal/npm_install/npm_install.bzl", line 146, in _create_build_files
        fail(("generate_build_file.js failed:...)))
generate_build_file.js failed:
STDOUT:

STDERR:
Could not find peer dependency 'jquery' of 'bootstrap'
ERROR: error loading package '': Encountered error while reading extension file 'install_bazel_dependencies.bzl': no such package '@npm//': Traceback (most recent call last):
    File "/private/var/tmp/_bazel_lifewood/55e2e676c374e1a534444472789d2c28/external/build_bazel_rules_nodejs/internal/npm_install/npm_install.bzl", line 292
        _create_build_files(repository_ctx, "npm_install", node, r...)
    File "/private/var/tmp/_bazel_lifewood/55e2e676c374e1a534444472789d2c28/external/build_bazel_rules_nodejs/internal/npm_install/npm_install.bzl", line 146, in _create_build_files
        fail(("generate_build_file.js failed:...)))
generate_build_file.js failed:
STDOUT:

STDERR:
Could not find peer dependency 'jquery' of 'bootstrap'
INFO: Elapsed time: 149.669s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
/Users/lifewood/work/ng-bazel-sample/node_modules/@bazel/bazel/node_modules/@bazel/bazel-darwin_x64/bazel-0.27.0-darwin-x86_64 failed with code 1.
➜  ng-bazel-sample git:(feature/ronakpandya7) ✗

It is this log that I was worried about

npm WARN deprecated gulp-minify-css@1.2.4: Please use gulp-clean-css
npm WARN deprecated gulp-util@3.0.8: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
↓↓↓↓↓↓ may be important???
npm WARN deprecated set-value@0.4.3: Critical bug fixed in v3.0.1, please upgrade to the latest version.  
↑↑↑↑↑↑ may be important???
ronakpandya7 commented 5 years ago

npm install bootstrap jquery popper.js --save use this command then you will get the error that i have posted in the last message

gurezo commented 5 years ago

Trying different possibilities now and building

gurezo commented 5 years ago

Certainly it will be the same error....

➜  ng-bazel-sample git:(feature/ronakpandya7) ✗ ng build
ERROR: /Users/lifewood/work/ng-bazel-sample/src/BUILD.bazel:24:1: in ng_module rule //src:src:
Traceback (most recent call last):
    File "/Users/lifewood/work/ng-bazel-sample/src/BUILD.bazel", line 24
        ng_module(name = 'src')
    File "/private/var/tmp/_bazel_lifewood/55e2e676c374e1a534444472789d2c28/external/npm_angular_bazel/src/ng_module.bzl", line 592, in _ng_module_impl
        ts_providers_dict_to_struct(ng_module_impl(ctx, compile_ts))
    File "/private/var/tmp/_bazel_lifewood/55e2e676c374e1a534444472789d2c28/external/npm_angular_bazel/src/ng_module.bzl", line 592, in ts_providers_dict_to_struct
        ng_module_impl(ctx, compile_ts)
    File "/private/var/tmp/_bazel_lifewood/55e2e676c374e1a534444472789d2c28/external/npm_angular_bazel/src/ng_module.bzl", line 556, in ng_module_impl
        ts_compile_actions(ctx, is_library = True, deps = ctx.a..., <4 more arguments>)
    File "/private/var/tmp/_bazel_lifewood/55e2e676c374e1a534444472789d2c28/external/npm_bazel_typescript/internal/common/compilation.bzl", line 302, in ts_compile_actions
        tsc_wrapped_tsconfig(ctx, compilation_inputs, srcs_files, j..., <3 more arguments>)
    File "/private/var/tmp/_bazel_lifewood/55e2e676c374e1a534444472789d2c28/external/npm_angular_bazel/src/ng_module.bzl", line 324, in tsc_wrapped_tsconfig
        dict(tsc_wrapped_tsconfig(ctx, files,...), ...})
    File "/private/var/tmp/_bazel_lifewood/55e2e676c374e1a534444472789d2c28/external/npm_angular_bazel/src/ng_module.bzl", line 324, in dict
        tsc_wrapped_tsconfig(ctx, files, srcs, **kwargs)
    File "/private/var/tmp/_bazel_lifewood/55e2e676c374e1a534444472789d2c28/external/npm_bazel_typescript/internal/build_defs.bzl", line 194, in tsc_wrapped_tsconfig
        _compute_node_modules_root(ctx)
    File "/private/var/tmp/_bazel_lifewood/55e2e676c374e1a534444472789d2c28/external/npm_bazel_typescript/internal/build_defs.bzl", line 63, in _compute_node_modules_root
        fail(("All npm dependencies need to c...)))
All npm dependencies need to come from a single workspace. Found 'external/npm/typescript/node_modules' and 'external/npm/node_modules'.
ERROR: Analysis of target '//src:prodapp' failed; build aborted: Analysis of target '//src:src' failed; build aborted
INFO: Elapsed time: 118.774s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (225 packages loaded, 26414 targets configured)
/Users/lifewood/work/ng-bazel-sample/node_modules/@bazel/bazel/node_modules/@bazel/bazel-darwin_x64/bazel-0.27.0-darwin-x86_64 failed with code 1.
➜  ng-bazel-sample git:(feature/ronakpandya7) ✗
gurezo commented 5 years ago

Almost the same version https://github.com/gurezo/ng-bazel-sample/commit/9417acb731ff0e8b8d0c89c66968961a0264d96c

other possibilities commit https://github.com/gurezo/ng-bazel-sample/commit/2b524b498541e835b5e2085fcd4ff93484c7e887

ronakpandya7 commented 5 years ago

@gurezo so did you get any success?

gurezo commented 5 years ago

@ronakpandya7 different error When I customized package.json and tried it, the error changed. https://github.com/gurezo/ng-bazel-sample/commit/57f56797a5817a5202d768d631093da3c11387a4

rc version down grade "^8.2.0-next.0" => "~8.1.0-rc.0"

add package

    "set-value": "3.0.1",

Isn't the build successful if you resolve the dependencies?

➜  ng-bazel-sample git:(feature/ronakpandya7) ✗ clear
➜  ng-bazel-sample git:(feature/ronakpandya7) ✗ rm -rf package-lock.json yarn.lock node_modules
➜  ng-bazel-sample git:(feature/ronakpandya7) ✗ rm -rf dist
➜  ng-bazel-sample git:(feature/ronakpandya7) ✗ npm cache verify
Cache verified and compressed (~/.npm/_cacache):
Content verified: 3252 (514202413 bytes)
Content garbage-collected: 4 (636469 bytes)
Index entries: 5122
Finished in 15.802s
➜  ng-bazel-sample git:(feature/ronakpandya7) ✗ npm i
npm WARN deprecated gulp-minify-css@1.2.4: Please use gulp-clean-css
npm WARN deprecated gulp-util@3.0.8: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN deprecated set-value@0.4.3: Critical bug fixed in v3.0.1, please upgrade to the latest version.

> fsevents@1.2.9 install /Users/lifewood/work/ng-bazel-sample/node_modules/fsevents
> node install

node-pre-gyp WARN Using request for node-pre-gyp https download
[fsevents] Success: "/Users/lifewood/work/ng-bazel-sample/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node" is installed via remote

> core-js@3.1.4 postinstall /Users/lifewood/work/ng-bazel-sample/node_modules/@angular-devkit/build-angular/node_modules/core-js
> node scripts/postinstall || echo "ignore"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

> core-js@2.6.9 postinstall /Users/lifewood/work/ng-bazel-sample/node_modules/core-js
> node scripts/postinstall || echo "ignore"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

> protobufjs@6.8.8 postinstall /Users/lifewood/work/ng-bazel-sample/node_modules/protobufjs
> node scripts/postinstall

> sauce-connect-launcher@1.2.7 postinstall /Users/lifewood/work/ng-bazel-sample/node_modules/sauce-connect-launcher
> node scripts/install.js || nodejs scripts/install.js

> @angular/cli@8.1.0 postinstall /Users/lifewood/work/ng-bazel-sample/node_modules/@angular/cli
> node ./bin/postinstall/script.js

> ng-bazel-sample@0.0.0 postinstall /Users/lifewood/work/ng-bazel-sample
> ngc -p ./angular-metadata.tsconfig.json

npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @bazel/bazel-linux_x64@0.26.1 (node_modules/@bazel/bazel/node_modules/@bazel/bazel-linux_x64):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @bazel/bazel-linux_x64@0.26.1: wanted {"os":"linux","arch":"any"} (current: {"os":"darwin","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @bazel/bazel-win32_x64@0.26.1 (node_modules/@bazel/bazel/node_modules/@bazel/bazel-win32_x64):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @bazel/bazel-win32_x64@0.26.1: wanted {"os":"win32","arch":"any"} (current: {"os":"darwin","arch":"x64"})

added 1398 packages from 1238 contributors and audited 28922 packages in 112.848s
found 1 low severity vulnerability
  run `npm audit fix` to fix them, or `npm audit` for details

   ╭────────────────────────────────────────────────────────────────╮
   │                                                                │
   │       New minor version of npm available! 6.9.2 → 6.10.0       │
   │   Changelog: https://github.com/npm/cli/releases/tag/v6.10.0   │
   │               Run npm install -g npm to update!                │
   │                                                                │
   ╰────────────────────────────────────────────────────────────────╯

➜  ng-bazel-sample git:(feature/ronakpandya7) ✗ ng build
ERROR: /Users/lifewood/work/ng-bazel-sample/WORKSPACE:41:1: Traceback (most recent call last):
    File "/Users/lifewood/work/ng-bazel-sample/WORKSPACE", line 41
        check_bazel_version(message = "\nYou no longer need ...", ...")
    File "/private/var/tmp/_bazel_lifewood/55e2e676c374e1a534444472789d2c28/external/build_bazel_rules_nodejs/internal/common/check_bazel_version.bzl", line 53, in check_bazel_version
        fail("\nCurrent Bazel version is {}, ...))

Current Bazel version is 0.26.1, expected at least 0.27.0

You no longer need to install Bazel on your machine.
Your project should have a dependency on the @bazel/bazel package which supplies it.
Try running `yarn bazel` instead.
    (If you did run that, check that you've got a fresh `yarn install`)

ERROR: Error evaluating WORKSPACE file
ERROR: error loading package '': Encountered error while reading extension file 'install_bazel_dependencies.bzl': no such package '@npm//': error loading package 'external': Could not load //external package
ERROR: error loading package '': Encountered error while reading extension file 'install_bazel_dependencies.bzl': no such package '@npm//': error loading package 'external': Could not load //external package
INFO: Elapsed time: 0.498s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
/Users/lifewood/work/ng-bazel-sample/node_modules/@bazel/bazel/node_modules/@bazel/bazel-darwin_x64/bazel-0.26.1-darwin-x86_64 failed with code 1.
➜  ng-bazel-sample git:(feature/ronakpandya7) ✗

I am very sorry, but more than this, I'm sorry.

gurezo commented 5 years ago

@ronakpandya7 After that, please issue an issue to angular

ronakpandya7 commented 5 years ago

Current Bazel version is 0.26.1, expected at least 0.27.0

"@bazel/bazel": "0.26.1", = >"@bazel/bazel": "^0.27.0"

update your bazel version in package.json

and then let me know the output of your build

gurezo commented 5 years ago

@ronakpandya7 sorry, result is same error

➜  ng-bazel-sample git:(feature/ronakpandya7) ✗ ng build
Starting local Bazel server and connecting to it...
ERROR: /Users/lifewood/work/ng-bazel-sample/src/BUILD.bazel:24:1: in ng_module rule //src:src:
Traceback (most recent call last):
    File "/Users/lifewood/work/ng-bazel-sample/src/BUILD.bazel", line 24
        ng_module(name = 'src')
    File "/private/var/tmp/_bazel_lifewood/55e2e676c374e1a534444472789d2c28/external/npm_angular_bazel/src/ng_module.bzl", line 592, in _ng_module_impl
        ts_providers_dict_to_struct(ng_module_impl(ctx, compile_ts))
    File "/private/var/tmp/_bazel_lifewood/55e2e676c374e1a534444472789d2c28/external/npm_angular_bazel/src/ng_module.bzl", line 592, in ts_providers_dict_to_struct
        ng_module_impl(ctx, compile_ts)
    File "/private/var/tmp/_bazel_lifewood/55e2e676c374e1a534444472789d2c28/external/npm_angular_bazel/src/ng_module.bzl", line 556, in ng_module_impl
        ts_compile_actions(ctx, is_library = True, deps = ctx.a..., <4 more arguments>)
    File "/private/var/tmp/_bazel_lifewood/55e2e676c374e1a534444472789d2c28/external/npm_bazel_typescript/internal/common/compilation.bzl", line 302, in ts_compile_actions
        tsc_wrapped_tsconfig(ctx, compilation_inputs, srcs_files, j..., <3 more arguments>)
    File "/private/var/tmp/_bazel_lifewood/55e2e676c374e1a534444472789d2c28/external/npm_angular_bazel/src/ng_module.bzl", line 324, in tsc_wrapped_tsconfig
        dict(tsc_wrapped_tsconfig(ctx, files,...), ...})
    File "/private/var/tmp/_bazel_lifewood/55e2e676c374e1a534444472789d2c28/external/npm_angular_bazel/src/ng_module.bzl", line 324, in dict
        tsc_wrapped_tsconfig(ctx, files, srcs, **kwargs)
    File "/private/var/tmp/_bazel_lifewood/55e2e676c374e1a534444472789d2c28/external/npm_bazel_typescript/internal/build_defs.bzl", line 194, in tsc_wrapped_tsconfig
        _compute_node_modules_root(ctx)
    File "/private/var/tmp/_bazel_lifewood/55e2e676c374e1a534444472789d2c28/external/npm_bazel_typescript/internal/build_defs.bzl", line 63, in _compute_node_modules_root
        fail(("All npm dependencies need to c...)))
All npm dependencies need to come from a single workspace. Found 'external/npm/typescript/node_modules' and 'external/npm/node_modules'.
ERROR: Analysis of target '//src:prodapp' failed; build aborted: Analysis of target '//src:src' failed; build aborted
INFO: Elapsed time: 148.200s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (512 packages loaded, 30205 targets configured)
/Users/lifewood/work/ng-bazel-sample/node_modules/@bazel/bazel/node_modules/@bazel/bazel-darwin_x64/bazel-0.27.0-darwin-x86_64 failed with code 1.
➜  ng-bazel-sample git:(feature/ronakpandya7) ✗
ronakpandya7 commented 5 years ago

ohh.. @gurezo now what you suggest? What can we do here?

gurezo commented 5 years ago

@ronakpandya7 sorry, i have a no idea...

ronakpandya7 commented 5 years ago

@gurezo thank you so much for your support and quick replies, now i am on my own again :)

gurezo commented 5 years ago

@ronakpandya7 sorry. If you try it, you can think of it as Yarn install instead of npm install and run ng build

➜  ng-bazel-sample git:(feature/ronakpandya7) clear
➜  ng-bazel-sample git:(feature/ronakpandya7) rm -rf package-lock.json yarn.lock node_modules
➜  ng-bazel-sample git:(feature/ronakpandya7) ✗ yarn install
yarn install v1.13.0
info No lockfile found.
[1/4] 🔍  Resolving packages...
warning gulp-inject > group-array > union-value > set-value@0.4.3: Critical bug fixed in v3.0.1, please upgrade to the latest version.
warning gulp-minify-css@1.2.4: Please use gulp-clean-css
warning gulp-minify-css > gulp-util@3.0.8: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
[2/4] 🚚  Fetching packages...
info @bazel/bazel-win32_x64@0.26.1: The platform "darwin" is incompatible with this module.
info "@bazel/bazel-win32_x64@0.26.1" is an optional dependency and failed compatibility check. Excluding it from installation.
info @bazel/bazel-linux_x64@0.26.1: The platform "darwin" is incompatible with this module.
info "@bazel/bazel-linux_x64@0.26.1" is an optional dependency and failed compatibility check. Excluding it from installation.
error selenium-webdriver@4.0.0-alpha.4: The engine "node" is incompatible with this module. Expected version ">= 10.15.0". Got "10.14.1"
error Found incompatible module
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
➜  ng-bazel-sample git:(feature/ronakpandya7) ✗ node -v
v10.14.1
gurezo commented 5 years ago

Hi @ronakpandya7

i've got it! build success!

I have the following steps

logs

➜  ng-bazel-sample git:(feature/ronakpandya7) ✗ yarn install
yarn install v1.16.0
info No lockfile found.
[1/4] 🔍  Resolving packages...
warning gulp-inject > group-array > union-value > set-value@0.4.3: Critical bug fixed in v3.0.1, please upgrade to the latest version.
warning gulp-minify-css@1.2.4: Please use gulp-clean-css
warning gulp-minify-css > gulp-util@3.0.8: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
[2/4] 🚚  Fetching packages...
info @bazel/bazel-linux_x64@0.27.0: The platform "darwin" is incompatible with this module.
info "@bazel/bazel-linux_x64@0.27.0" is an optional dependency and failed compatibility check. Excluding it from installation.
info @bazel/bazel-win32_x64@0.27.0: The platform "darwin" is incompatible with this module.
info "@bazel/bazel-win32_x64@0.27.0" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] 🔗  Linking dependencies...
[4/4] 🔨  Building fresh packages...
success Saved lockfile.
$ ngc -p ./angular-metadata.tsconfig.json
✨  Done in 126.27s.
➜  ng-bazel-sample git:(feature/ronakpandya7) ✗ ng build
INFO: Analyzed target //src:prodapp (231 packages loaded, 26543 targets configured).
INFO: Found 1 target...
INFO: Deleting stale sandbox base /private/var/tmp/_bazel_lifewood/55e2e676c374e1a534444472789d2c28/sandbox
Target //src:prodapp up-to-date:
  dist/bin/src/prodapp
INFO: Elapsed time: 126.520s, Critical Path: 66.37s
INFO: 7 processes: 6 local, 1 worker.
INFO: Build completed successfully, 148 total actions
➜  ng-bazel-sample git:(feature/ronakpandya7) ✗ git add .
➜  ng-bazel-sample git:(feature/ronakpandya7) ✗ git commit -m "success yarn install & build"
[feature/ronakpandya7 62764eb] success yarn install & build
 3 files changed, 8973 insertions(+), 12119 deletions(-)
 delete mode 100644 package-lock.json
 create mode 100644 yarn.lock
➜  ng-bazel-sample git:(feature/ronakpandya7) git push origin feature/ronakpandya7
Counting objects: 4, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 138.69 KiB | 959.00 KiB/s, done.
Total 4 (delta 2), reused 0 (delta 0)
remote: Resolving deltas: 100% (2/2), completed with 2 local objects.
remote:
remote: GitHub found 1 vulnerability on gurezo/ng-bazel-sample's default branch (1 moderate). To find out more, visit:
remote:      https://github.com/gurezo/ng-bazel-sample/network/alerts
remote:
To github:gurezo/ng-bazel-sample.git
   57f5679..62764eb  feature/ronakpandya7 -> feature/ronakpandya7
➜  ng-bazel-sample git:(feature/ronakpandya7)
ronakpandya7 commented 5 years ago

@gurezo that is great.. so u didnt built with cli rc version right?

gurezo commented 5 years ago

@ronakpandya7

success package.json https://github.com/gurezo/ng-bazel-sample/pull/3/files

now enviroment

➜  ng-bazel-sample git:(feature/ronakpandya7) npm -v
6.9.0
➜  ng-bazel-sample git:(feature/ronakpandya7) node -v
v10.16.0
➜  ng-bazel-sample git:(feature/ronakpandya7) yarn -v
1.16.0
➜  ng-bazel-sample git:(feature/ronakpandya7) java -version
java version "1.8.0_77"
Java(TM) SE Runtime Environment (build 1.8.0_77-b03)
Java HotSpot(TM) 64-Bit Server VM (build 25.77-b03, mixed mode)
gurezo commented 5 years ago

point is package install. Succeeded if you run build after yarn install instead of npm install.

ronakpandya7 commented 5 years ago

@gurezo Do we need set-value package ?

ronakpandya7 commented 5 years ago

Because after doing yarn install i am getting the same error. only difference is i dont have set-value package do I need that? In your package.json it exist