You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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".
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)
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.
Reacted by Alan Agius and Lukáš "striky" Strišovský
Ty, guys. I needed change node version back to stable version, but, if I'm not wrong I had same error if I tried create new app without ivy within bazel. I'll do this test again tomorrow and I'll let u know.
I tested it right now one more time to create new app without --enable-ivy command and it still not works.
Command: ng new my-app --collection=@angular/bazel
Error:
Schematic input does not validate against the Schema: {"name":"my-app --collection=@angular/bazel","version":"8.1.0-beta.3","routing":true,"style":"scss"}
Errors:
Data path ".name" should match format "html-selector".
Versions:
Angular CLI: 8.1.0-beta.3
Node: 12.4.0
OS: darwin x64
Angular:
...
npm i -g @angular/cli@latest - everything was ok npm i -g @angular/bazel@latest - gave me warnings about depedancies:
npm WARN @angular/bazel@8.0.2 requires a peer of @angular/compiler-cli@8.0.2 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/bazel@8.0.2 requires a peer of @bazel/typescript@0.* but none is installed. You must install peer dependencies yourself.
npm WARN @angular/bazel@8.0.2 requires a peer of typescript@>=3.4 <3.5 but none is installed. You must install peer dependencies yourself.
So, I ran this commands:
npm i -g @angular/compiler-cli@latest npm i -g @angular/compiler@latest (because is it dependancy for compiler-cli) npm i -g typescript@3.4.5 (because of compiler-cli@8.0.2 requires a peer of typescript@>=3.4 <3.5) npm i -g @bazel/typescript@latest
Finally, I ran command:
ng new my-app --collection=@angular/bazel
Result:
? Would you like to add Angular routing? Yes
? Which stylesheet format would you like to use? SCSS [ http://sass-lang.com/documentation/file.SASS_REFERENCE.html#syntax ]
Schematic input does not validate against the Schema: {"name":"my-app --collection=@angular/bazel","version":"8.0.4","routing":true,"style":"scss"}
Errors:
Data path ".name" should match format "html-selector".
Activity
alan-agius4 commentedon 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)
kyliau commentedon Jun 24, 2019
Yes, the Bazel schematics does not support Ivy yet. I've created a JIRA work item to look into this.
striky1 commentedon Jun 24, 2019
Ty, guys. I needed change node version back to stable version, but, if I'm not wrong I had same error if I tried create new app without ivy within bazel. I'll do this test again tomorrow and I'll let u know.
fix(bazel): update ng new schema to match the current ng new schema o…
fix(bazel): update ng new schema to match the current ng new schema o…
jeroenouw commentedon Jun 25, 2019
@striky1 did you run this command already before your ran ng new?:
npm install -g @angular/bazel@latestAnd maybe good to install everything globally
@latestinstead of the@next. For me, this works.striky1 commentedon Jun 26, 2019
I tested it right now one more time to create new app without
--enable-ivycommand and it still not works.Command:
ng new my-app --collection=@angular/bazelError:
I tried also do combinations of
@latestor@nextbazel version within v10.16.0 version of NodeJS but it not helps.@kyliau do u have some idea what I did wrong? 🤔
@jeroenouw yep, of course, I did this command. I followed this article: https://blog.angular.io/try-bazels-opt-in-preview-in-angular-cli-b9430bd00e82 . Also I tried uninstall and install back
@angular/bazelwith@latestsuffix and still I got same error.jeroenouw commentedon Jun 26, 2019
@striky1 I also meant to do the
@latestfor the following packages:You are still using beta packages here.
striky1 commentedon Jun 26, 2019
@jeroenouw yep, u are right. My bad, sorry.
I tried it again and ran these commands:
npm i -g @angular/cli@latest- everything was oknpm i -g @angular/bazel@latest- gave me warnings about depedancies:So, I ran this commands:
npm i -g @angular/compiler-cli@latestnpm i -g @angular/compiler@latest(because is it dependancy forcompiler-cli)npm i -g typescript@3.4.5(because ofcompiler-cli@8.0.2 requires a peer of typescript@>=3.4 <3.5)npm i -g @bazel/typescript@latestFinally, I ran command:
ng new my-app --collection=@angular/bazelResult:
CLI:
tja4472 commentedon Jun 26, 2019
FWIW: I've just done this, but I picked CSS as stylesheet format.
striky1 commentedon Jun 26, 2019
@tja4472 yep, I tried it too but it not helps. I'm confused 🙃
alan-agius4 commentedon 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/bazelstriky1 commentedon Jul 8, 2019
@alan-agius4 Awesome, ty! It works. Everything is on
@latestversions (see bellow) andng newwas successful.CLI:
angular-automatic-lock-bot commentedon Sep 15, 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.