Starts in:
1 DAY
18 HRS
53 MIN
47 SEC
Starts in:
1 D
18 H
53 M
47 S
Open Closed

Can't use Angular CLI Commands in a newly created ABP Commercial Project #4430


User avatar
0
gunpal5 created
  • ABP Framework version: v7.0.1
  • UI type: Angular
  • DB provider: MongoDB
  • Identity Server Separated (Angular): no
  • Exception message and stack trace:
  • An unhandled exception occurred: Cannot destructure property 'aliases' of 'collection.description.schematics[schematicName]' as it is undefined. See "C:\Users\Gunpa\AppData\Local\Temp\ng-auDl5P\angular-errors.log" for further details.

logs: [error] TypeError: Cannot destructure property 'aliases' of 'collection.description.schematics[schematicName]' as it is undefined. at GenerateCommandModule.getSchematics (D:\OnlineTFS\ProxyMobi\1.0\angular\node_modules\@angular\cli\src\commands\generate\cli.js:141:29) at getSchematics.next (<anonymous>) at GenerateCommandModule.getSchematicsToRegister (D:\OnlineTFS\ProxyMobi\1.0\angular\node_modules\@angular\cli\src\commands\generate\cli.js:158:76) at async GenerateCommandModule.builder (D:\OnlineTFS\ProxyMobi\1.0\angular\node_modules\@angular\cli\src\commands\generate\cli.js:35:55) at async runCommand (D:\OnlineTFS\ProxyMobi\1.0\angular\node_modules\@angular\cli\src\command-builder\command-runner.js:113:5) at async default_1 (D:\OnlineTFS\ProxyMobi\1.0\angular\node_modules\@angular\cli\lib\cli\index.js:70:16)

  • Steps to reproduce the issue:"
  1. Create a new Project with Angular UI and MongoDb using ABP Suite.
  2. Run the angular project with 'npm start'
  3. try to create a new component or module with angular CLI with or without yarn e.g yarn ng generate component new-component

I've been struggling to solve this issue. I have tried to reinstall Angular CLI, created/recreated the project several times. Its been over 2 weeks, I am unable to use the basic angular cli commands with the abp commercial. Interestingly, I can create new entity with UI using ABP suite. but that's not enough to create the entire project. I don't want to create components manually for my project, I really need the angular CLI commands for the development.

Please provide me a solution for this issue as soon as possible. I've been already struggling for over 2 weeks.

Regards, Gunpal Jain


3 Answer(s)
  • User Avatar
    0
    gunpal5 created

    Another day wasted...

  • User Avatar
    0
    muhammedaltug created

    Hello,

    This issue is related to angular cli version 15.1.x. The problem was resolved with this commit, and the fix is available with 15.1.3 version. If the @angular/cli package version is '^15.x.x' or '~15.1.x' can you remove your yarn.lock file and re-install packages with yarn install command. Otherwise, can you update @angular/cli package version to 15.1.3

  • User Avatar
    0
    gunpal5 created

    Thank you, that fixed the issue

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06