Skip to content

Bazel opt in : ng add @angular/bazel fails #14933

Closed
@hugodes

Description

@hugodes

🐞 Bug report

Command (mark with an x)

- [ ] new
- [ ] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ x ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Description

I followed the steps here for using Bazel in out existing application and got this error:


$ ng add @angular/bazel
Unable to find compatible package.  Using 'latest'.
Installing packages for tooling via npm.
npm WARN @angular/cdk@8.0.1 requires a peer of @angular/core@^8.0.0 || ^9.0.0-0 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/cdk@8.0.1 requires a peer of @angular/common@^8.0.0 || ^9.0.0-0 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/material@8.0.1 requires a peer of @angular/animations@^8.0.0 || ^9.0.0-0 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/material@8.0.1 requires a peer of @angular/core@^8.0.0 || ^9.0.0-0 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/material@8.0.1 requires a peer of @angular/common@^8.0.0 || ^9.0.0-0 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/material@8.0.1 requires a peer of @angular/forms@^8.0.0 || ^9.0.0-0 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/material-moment-adapter@8.0.1 requires a peer of @angular/core@^8.0.0 || ^9.0.0-0 but none is installed. You must install peer dependencies yourself.
npm WARN @ngrx/effects@8.0.1 requires a peer of @angular/core@^8.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @ngrx/store@8.0.1 requires a peer of @angular/core@^8.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/bazel@8.0.3 requires a peer of @angular/compiler-cli@8.0.3 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/bazel@8.0.3 requires a peer of @bazel/typescript@0.* but none is installed. You must install peer dependencies yourself.

+ @angular/bazel@8.0.3
added 32 packages from 85 contributors and audited 26308 packages in 9.563s
found 0 vulnerabilities

Installed packages for tooling via npm.
Invalid JSON character: "]" at 20:11.

🔬 Minimal Reproduction

There is no stack trace so I don't even know which file the error is coming from

🔥 Exception or Error


Invalid JSON character: "]" at 20:11.

🌍 Your Environment



Angular CLI: 8.1.0-rc.0
Node: 10.16.0
OS: darwin x64
Angular: 8.1.0-rc.0
... animations, cli, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... platform-server, 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.1.0-rc.0
@angular/bazel                     8.0.3
@angular/cdk                       8.0.1
@angular/material                  8.0.1
@angular/material-moment-adapter   8.0.1
@ngtools/webpack                   8.1.0-rc.0
@schematics/angular                8.1.0-rc.0
@schematics/update                 0.801.0-rc.0
rxjs                               6.5.2
typescript                         3.4.5
webpack                            4.35.0

Anything else relevant?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions