Angular-cli: ng new projectname fails with Error compiling schema, function code: var customRule0

Created on 11 May 2018  Â·  3Comments  Â·  Source: angular/angular-cli

Versions

ng -v

 _                      _                 ____ _     ___
/ \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|

/ â–³ | '_ / _| | | | |/ _ | '__| | | | | | |
/ ___ | | | | (_| | |_| | | (_| | | | |___| |___ | |
/_/ __| |_|__, |__,_|_|__,_|_| ____|_____|___|
|___/

Angular CLI: 6.0.1
Node: 6.11.0
OS: win32 x64
Angular:
...

Package Version

@angular-devkit/architect 0.6.1
@angular-devkit/core 0.6.1
@angular-devkit/schematics 0.6.1
@angular/cli 6.0.1
@schematics/angular 0.6.1
@schematics/update 0.6.1
rxjs 6.1.0
typescript 2.8.3

Repro steps

  • Step 1
    npm i @angular/cli@latest
  • Step 2
    ng new testproject
  • Step 3

Observed behavior

ng new testproj
Error compiling schema, function code: var customRule0 = customRules[0]; var validate = async function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; var vErrors = null;
var errors = 0; if (rootData === undefined) rootData = data; if ((data && typeof data === "object" && !Array.isArray(data))) { if (data.di .....

Desired behavior

a new project. I did not install this cli version global because i have already anothr porject with anotehr version of cli and angular.
I just wanted to test the latest cli + angular6.

Mention any other details that might be useful (optional)

angulacli triage #1

Most helpful comment

I ran into the same issue. Turns out I forgot to switch to node 8.10+

All 3 comments

I ran into the same issue. Turns out I forgot to switch to node 8.10+

Thanks for reporting this issue. This issue is now obsolete due to changes in the recent releases. Please update to the most recent Angular CLI version.

If the problem persists after upgrading, please open a new issue, provide a simple repository reproducing the problem, and describe the difference between the expected and current behavior.

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._

Was this page helpful?
0 / 5 - 0 ratings

Related issues

naveedahmed1 picture naveedahmed1  Â·  3Comments

brtnshrdr picture brtnshrdr  Â·  3Comments

rajjejosefsson picture rajjejosefsson  Â·  3Comments

jbeckton picture jbeckton  Â·  3Comments

rwillmer picture rwillmer  Â·  3Comments