I updated my project from 8.2.3 to 8.3.2, when creating a new entity from suite, angular ui is not generated. This is the log of the suite
2024-11-05 02:24:20.673 +07:00 [INF] 10/11 - AngularUiGenerateWithSchematicsCommand started...
2024-11-05 02:24:20.674 +07:00 [INF] Running the Angular Schematics command:
node run-schematics.mjs "D:/PortX/portx_abp/angular/.suite/schematics/node_modules/.bin/ng" g ".suite/schematics/collection.json:entity" app-pro PortX "D:/PortX/portx_abp/aspnet-core/.suite/entities/OwnerSupplierUser.json" "D:/PortX/portx_abp/angular"
2024-11-05 02:24:25.251 +07:00 [INF] Angular Schematics command failed.
D:\PortX\portx_abp\angular\.suite\schematics\node_modules\execa\lib\error.js:60
error = new Error(message);
^
Error: Command failed with exit code 1: .suite/schematics/node_modules/.bin/ng g .suite/schematics/collection.json:entity --template app-pro --target PortX --source D:/PortX/portx_abp/aspnet-core/.suite/entities/OwnerSupplierUser.json
[1m[31m',' expected. (23:30)
[0m [90m 21 |[31m
[90m 22 |[31m
[31m[1m>[22m[1m[31m[90m 23 |[31m createWithOcr [33m=[31m (input[33m:[31m any[33m<[31m[33mstring[31m[33m,[31m [33mStringValues[31m[33m>[31m[33m,[31m config[33m?[31m[33m:[31m [33mPartial[31m[33m<[31m[33mRest[31m[33m.[31m[33mConfig[31m[33m>[31m) [33m=>[31m
[90m |[31m [31m[1m^[22m[1m[31m
[90m 24 |[31m [36mthis[31m[33m.[31mrestService[33m.[31mrequest[33m<[31m[33many[31m[33m,[31m [33mBillFileProcessDto[31m[33m>[31m({
[90m 25 |[31m method[33m:[31m [32m'POST'[31m[33m,[31m
[90m 26 |[31m url[33m:[31m [32m'/api/app/bill-file-processes/create-with-ocr'[31m[33m,[31m[0m[39m[22m
at makeError (D:\PortX\portx_abp\angular\.suite\schematics\node_modules\execa\lib\error.js:60:11)
at handlePromise (D:\PortX\portx_abp\angular\.suite\schematics\node_modules\execa\index.js:118:26)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async file:///D:/PortX/portx_abp/angular/.suite/schematics/run-schematics.mjs:6:20 {
shortMessage: 'Command failed with exit code 1: .suite/schematics/node_modules/.bin/ng g .suite/schematics/collection.json:entity --template app-pro --target PortX --source D:/PortX/portx_abp/aspnet-core/.suite/entities/OwnerSupplierUser.json',
command: '.suite/schematics/node_modules/.bin/ng g .suite/schematics/collection.json:entity --template app-pro --target PortX --source D:/PortX/portx_abp/aspnet-core/.suite/entities/OwnerSupplierUser.json',
escapedCommand: '".suite/schematics/node_modules/.bin/ng" g ".suite/schematics/collection.json:entity" --template app-pro --target PortX --source "D:/PortX/portx_abp/aspnet-core/.suite/entities/OwnerSupplierUser.json"',
exitCode: 1,
signal: undefined,
signalDescription: undefined,
stdout: '',
stderr: "\x1B[1m\x1B[31m',' expected. (23:30)\n" +
'\x1B[0m \x1B[90m 21 |\x1B[31m \n' +
' \x1B[90m 22 |\x1B[31m\n' +
'\x1B[31m\x1B[1m>\x1B[22m\x1B[1m\x1B[31m\x1B[90m 23 |\x1B[31m createWithOcr \x1B[33m=\x1B[31m (input\x1B[33m:\x1B[31m any\x1B[33m<\x1B[31m\x1B[33mstring\x1B[31m\x1B[33m,\x1B[31m \x1B[33mStringValues\x1B[31m\x1B[33m>\x1B[31m\x1B[33m,\x1B[31m config\x1B[33m?\x1B[31m\x1B[33m:\x1B[31m \x1B[33mPartial\x1B[31m\x1B[33m<\x1B[31m\x1B[33mRest\x1B[31m\x1B[33m.\x1B[31m\x1B[33mConfig\x1B[31m\x1B[33m>\x1B[31m) \x1B[33m=>\x1B[31m\n' +
' \x1B[90m |\x1B[31m \x1B[31m\x1B[1m^\x1B[22m\x1B[1m\x1B[31m\n' +
' \x1B[90m 24 |\x1B[31m \x1B[36mthis\x1B[31m\x1B[33m.\x1B[31mrestService\x1B[33m.\x1B[31mrequest\x1B[33m<\x1B[31m\x1B[33many\x1B[31m\x1B[33m,\x1B[31m \x1B[33mBillFileProcessDto\x1B[31m\x1B[33m>\x1B[31m({\n' +
" \x1B[90m 25 |\x1B[31m method\x1B[33m:\x1B[31m \x1B[32m'POST'\x1B[31m\x1B[33m,\x1B[31m\n" +
" \x1B[90m 26 |\x1B[31m url\x1B[33m:\x1B[31m \x1B[32m'/api/app/bill-file-processes/create-with-ocr'\x1B[31m\x1B[33m,\x1B[31m\x1B[0m\x1B[39m\x1B[22m",
failed: true,
timedOut: false,
isCanceled: false,
killed: false
}
Node.js v22.11.0
9 Answer(s)
-
0
please confirm for me !!!
-
0
please help me!
-
0
Hello ,
Please check your yarn version it should be 1.22.22 and node version should be 20.17.0 Please try to update and check again.
Thank you.
-
0
@Anjali_Musmade Same version as you but still can't generate UI
-
0
Hello,
Please try following steps
Open CMD anywhere Run command:
yarn cache clear
Go to angular folder - Remove.angular | node_modules | yarn.lock
files the existing folders Run command:yarn install
Run command:yarn start
Thanks
-
0
@Anjali_Musmade I tried the steps above but still get the error Can I send you the project to try?
-
0
Hello ,
Can you please share your
package.json
file.Thank you.
-
0
@Anjali_Musmade previously the .suite folder was in /aspnet-core but now aspnet-core no longer exists. Is that the reason?
{ "name": "PortX", "version": "0.0.0", "scripts": { "ng": "ng", "start-subdomain": "ng serve --host apps.portx-test.com --disable-host-check --configuration subdomain", "start": "ng serve --open", "build": "ng build", "build:prod": "ng build --configuration production", "watch": "ng build --watch --configuration development", "test": "ng test", "lint": "ng lint", "coverage": "ng test --no-watch --code-coverage" }, "private": true, "dependencies": { "@abp/ng.components": "~8.3.3", "@abp/ng.core": "~8.3.3", "@abp/ng.identity": "~8.3.3", "@abp/ng.oauth": "~8.3.3", "@abp/ng.setting-management": "~8.3.3", "@abp/ng.theme.shared": "~8.3.3", "@abp/signalr": "~8.3.3", "@angular/animations": "^18.2.9", "@angular/cdk": "^18.2.10", "@angular/common": "^18.2.9", "@angular/compiler": "^18.2.9", "@angular/core": "^18.2.9", "@angular/forms": "^18.2.9", "@angular/localize": "^18.2.9", "@angular/material": "^18.2.10", "@angular/platform-browser": "^18.2.9", "@angular/platform-browser-dynamic": "^18.2.9", "@angular/router": "^18.2.9", "@angular/service-worker": "^18.2.9", "@ckeditor/ckeditor5-angular": "^6.0.1", "@ckeditor/ckeditor5-build-classic": "^38.0.1", "@datadog/browser-rum": "^5.26.0", "@ng-select/ng-select": "^13.9.1", "@volo/abp.commercial.ng.ui": "~8.3.3", "@volo/abp.ng.account": "~8.3.3", "@volo/abp.ng.audit-logging": "~8.3.3", "@volo/abp.ng.file-management": "~8.3.3", "@volo/abp.ng.gdpr": "~8.3.3", "@volo/abp.ng.identity": "~8.3.3", "@volo/abp.ng.language-management": "~8.3.3", "@volo/abp.ng.openiddictpro": "~8.3.3", "@volo/abp.ng.saas": "~8.3.3", "@volo/abp.ng.text-template-management": "~8.3.3", "@volosoft/abp.ng.theme.lepton-x": "~3.3.3", "apexcharts": "^4.0.0", "exceljs": "^4.3.0", "file-saver": "^2.0.5", "jszip": "^3.10.1", "moment-timezone": "^0.5.43", "ng-apexcharts": "^1.12.0", "ngx-extended-pdf-viewer": "^21.3.5", "ngx-spinner": "^16.0.2", "rxjs": "^7.8.1", "tslib": "^2.1.0", "xlsx": "^0.18.5", "zone.js": "~0.14.2" }, "devDependencies": { "@abp/ng.schematics": "~8.3.3", "@angular-devkit/build-angular": "^18.2.10", "@angular-eslint/builder": "~18.4.0", "@angular-eslint/eslint-plugin": "~18.4.0", "@angular-eslint/eslint-plugin-template": "~18.4.0", "@angular-eslint/schematics": "~18.4.0", "@angular-eslint/template-parser": "~18.4.0", "@angular/cli": "^18.2.10", "@angular/compiler-cli": "^18.2.9", "@angular/language-service": "^18.2.9", "@types/jasmine": "~3.6.0", "@types/node": "^12.11.1", "@typescript-eslint/eslint-plugin": "^5.59.2", "@typescript-eslint/parser": "^5.59.2", "eslint": "^8.39.0", "jasmine-core": "~4.0.0", "karma": "~6.3.0", "karma-chrome-launcher": "~3.1.0", "karma-coverage": "~2.1.0", "karma-jasmine": "~4.0.0", "karma-jasmine-html-reporter": "^1.7.0", "ng-packagr": "^18.2.1", "typescript": "~5.5.4" } }
-
0
Hello ,
I have check your
package.json
file it was correct and at my side its work.Error: Command failed with exit code 1: .suite/schematics/node_modules/.bin/ng g .suite/schematics/collection.json:entity --template app-pro --target PortX --source D:/PortX/portx_abp/aspnet-core/.suite/entities/OwnerSupplierUser.json [1m[31m',' expected. (23:30)
In your error log it will be show syntactical error it means remove the extra comma or fix any other syntax issues you might find. If it is not solve the issue please share test project it to support@abp.io email along with ticket no.
Thank you.