Starts in:
1 DAY
2 HRS
23 MIN
59 SEC
Starts in:
1 D
2 H
23 M
59 S
Open Closed

8.3.2 Error on generate Angular UI from Suite #8222


User avatar
0
portx-dev created

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
',' expected. (23:30)
  21 |   
  22 |
> 23 |   createWithOcr = (input: any<string, StringValues>, config?: Partial<Rest.Config>) =>
     |                              ^
  24 |     this.restService.request<any, BillFileProcessDto>({
  25 |       method: 'POST',
  26 |       url: '/api/app/bill-file-processes/create-with-ocr',
    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)
  • User Avatar
    0
    portx-dev created

    please confirm for me !!!

  • User Avatar
    0
    portx-dev created

    please help me!

  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    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.

  • User Avatar
    0
    portx-dev created

    @Anjali_Musmade Same version as you but still can't generate UI

  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    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

  • User Avatar
    0
    portx-dev created

    @Anjali_Musmade I tried the steps above but still get the error Can I send you the project to try?

  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hello ,

    Can you please share your package.json file.

    Thank you.

  • User Avatar
    0
    portx-dev created

    @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"
      }
    }
    
  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    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
    ',' 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.

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