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 new with bazel doesn't work

See original GitHub issue

🐞 Bug report

Command (mark with an x)

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

Is this a regression?

I didn’t testing previous version of CLI/Bazel.

Description

I tried to create new application with integration of Bazel but it not works in the beginning (without Bazel within Ivy is working well)

🔬 Minimal Reproduction

  1. ng new my-app --collection=@angular/bazel --enable-ivy

🔥 Exception or Error


Schematic input does not validate against the Schema: {"enableIvy":true,"name":"my-app --collection=@angular/bazel","version":"8.1.0-beta.2","routing":true,"style":"scss"}
Errors:

  Data path ".name" should match format "html-selector".

🌍 Your Environment


Angular CLI: 8.1.0-beta.2
Node: 12.4.0
OS: darwin x64
Angular: 
... 

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.801.0-beta.2
@angular-devkit/core         8.1.0-beta.2
@angular-devkit/schematics   8.1.0-beta.2
@schematics/angular          8.1.0-beta.2
@schematics/update           0.801.0-beta.2
rxjs                         6.4.0

NodeJS v12.4.0
NPM v6.9.0
MacOS v10.14.5

Anything else relevant?

I tried uninstall @angular/cli + @angular/bazel and then install back with @next suffix on both of them, but still it doesn’t work.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
alan-agius4commented, Jun 26, 2019

@striky1, your problem is due to a hairline space which is in your command, and node is unable to separate the args properly.

Try using this command ng new my-app --collection=@angular/bazel

2reactions
kyliaucommented, Jun 24, 2019

AFAIK, Ivy is not yet supported by @angular/bazel package, @kyliau, can you confirm?, Also, the arguments are not being parsed properly as the schema is outdated. (Will do a PR to address the later)

Yes, the Bazel schematics does not support Ivy yet. I’ve created a JIRA work item to look into this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why does Angular CLI 9.01 fails to create a bazel project?
I erease Node and Angular from my machine, and re-installed them from scratch. The, I followed these instructions to create a new ng...
Read more >
How to Try Angular CLI with Bazel | by Suguru Inatomi - Medium
Run application with Bazel ... To run Angular application, just execute ng serve . ng serve command without --prod runs ts_devserver target defined...
Read more >
Angular <3 Bazel - International JavaScript Conference
Bazel promises a new, better and faster way to build a project. It doesn't necessarily have to be an Angular or TypeScript project,...
Read more >
Angular ❤️ Bazel leaving Angular Labs - DEV Community ‍ ‍
The short answer is: we are spinning off the Bazel effort to be independent of Angular, and to work for ALL frontend frameworks...
Read more >
Build your Angular application with Bazel | Ninja Squad
Then when you run a command, Bazel builds a task graph, and only runs the ... ng new bazel-project --defaults --collection=@angular/bazel.
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