ng-alain / ng-alain

NG-ZORRO admin panel front-end framework (surge mirror https://ng-alain-doc.surge.sh)
https://ng-alain.com
MIT License
4.53k stars 1.15k forks source link

"ng add ng-alain" failed #2359

Closed kapr1k0rn closed 1 year ago

kapr1k0rn commented 1 year ago

Steps to reproduce

  1. create a devcontainer in vscode with nodejs&typescript image

  2. open the devcontainer with vscode, follow the cli installation:

    yarn global add @angular/cli
    cd my-project
    ng add ng-alain

    angular version:

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

Angular CLI: 15.1.3 Node: 18.13.0 Package Manager: yarn 1.22.19 OS: linux x64

Angular: 15.1.2 ... animations, common, compiler, compiler-cli, core, forms ... platform-browser, platform-browser-dynamic, router

Package Version

@angular-devkit/architect 0.1501.3 @angular-devkit/build-angular 15.1.3 @angular-devkit/core 15.1.3 @angular-devkit/schematics 15.1.3 @angular/cli 15.1.3 @schematics/angular 15.1.3 rxjs 7.8.0 typescript 4.9.4


### What is expected?
ng-alain was added to my-project

### What is actually happening?

node ➜ /workspaces/wol/my-project $ ng add ng-alain ℹ Using package manager: yarn ✔ Found compatible package version: ng-alain@15.0.0. ✔ Package information loaded.

The package ng-alain@15.0.0 will be installed and executed. Would you like to proceed? Yes ✔ Packages successfully installed. ? Which default language would you like to use? 简体中文 (zh) ? Would you like to add code style plugin? (default: Y) Yes ? Would you like to add dynamic form (sf component) plugin? (default: Y) Yes ? Would you like to add mock plugin? (default: Y) Yes ? Would you like to add i18n plugin? (default: N) No Generating NG-ALAIN scaffold... Translating template into zh language, please wait... Can not add index to parent of type array



| Environment | Info |
|---|---|
| ng-alain | 15.0.0 |

---
tried "ng add ng-alain@14" with angular/cli@14/node 16, no issue at all.

<!-- generated by ng-alain-issue-helper. DO NOT REMOVE -->
cipchk commented 1 year ago

fixed by 15.0.1.