- 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:"
- Create a new Project with Angular UI and MongoDb using ABP Suite.
- Run the angular project with 'npm start'
- 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)
-
0
Another day wasted...
-
0
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 -
0
Thank you, that fixed the issue