Open Closed

Unable to Create Angular Code using Abp Suite #8575


User avatar
0
castcrewit created
  • ABP Framework version: v 9.0.2

Everything else works but getting the below error while creating angular code

Error: Command failed with exit code 1: .suite/schematics/node_modules/.bin/ng g .suite/schematics/collection.json:entity --template app-nolayers-pro --target xxxxxxxxxx.Playboard --source C:/SourceCode/xxxxxxxxxx-services/services/Playboard/.suite/entities/Union.json
[Project Not Found] A project matching entity solution name or a default project does not exist in your Angular workspace.
    at makeError (C:\SourceCode\xxxxxxxxxx-services\apps\angular\.suite\schematics\node_modules\execa\lib\error.js:60:11)
    at handlePromise (C:\SourceCode\xxxxxxxxxx-services\apps\angular\.suite\schematics\node_modules\execa\index.js:118:26)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async file:///C:/SourceCode/xxxxxxxxxx-services/apps/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-nolayers-pro --target xxxxxxxxxx.Playboard --source C:/SourceCode/xxxxxxxxxx-services/services/Playboard/.suite/entities/Union.json',
  command: '.suite/schematics/node_modules/.bin/ng g .suite/schematics/collection.json:entity --template app-nolayers-pro --target xxxxxxxxxx.Playboard --source C:/SourceCode/xxxxxxxxxx-services/services/Playboard/.suite/entities/Union.json',
  escapedCommand: '".suite/schematics/node_modules/.bin/ng" g ".suite/schematics/collection.json:entity" --template app-nolayers-pro --target xxxxxxxxxx.Playboard --source "C:/SourceCode/xxxxxxxxxx-services/services/Playboard/.suite/entities/Union.json"',
  exitCode: 1,
  signal: undefined,
  signalDescription: undefined,
  stdout: '',
  stderr: '\x1B[1m\x1B[31m[Project Not Found] A project matching entity solution name or a default project does not exist in your Angular workspace.\x1B[39m\x1B[22m',
  failed: true,
  timedOut: false,
  isCanceled: false,
  killed: false
}


2 Answer(s)
  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hello ,

    Can you share some steps to reproudce this issue

    Thank you.

  • User Avatar
    0
    castcrewit created

    If you are asking me to provide steps , I am assuming you tried and were not able to do it.

    To ake sure it has nothing to do with my code changes, I just created a Test Project and added a Test MicroService. Then opened the AbpSuite and added a Entity called Test and added just one property as Name.

    Then I clicked on Save and generate and below is the error :

    2025-01-03 13:29:38.740 -08:00 [INF] 1/10 - EntityGenerateCommand started...
    2025-01-03 13:29:39.263 -08:00 [INF] Executing ObjectResult, writing value of type 'System.Boolean'.
    2025-01-03 13:29:39.263 -08:00 [INF] Executed action Volo.Abp.Suite.Controllers.TemplatesController.CheckOutdatedTemplatesAsync (Volo.Abp.Suite) in 626.0651ms
    2025-01-03 13:29:39.263 -08:00 [INF] Executed endpoint 'Volo.Abp.Suite.Controllers.TemplatesController.CheckOutdatedTemplatesAsync (Volo.Abp.Suite)'
    2025-01-03 13:29:39.263 -08:00 [INF] Request finished HTTP/1.1 GET http://localhost:3000/api/templates/solutions/24deeed0-2228-4e36-9506-c59218094fea/is-templates-outdated - 200 null application/json; charset=utf-8 626.3575ms
    2025-01-03 13:29:39.578 -08:00 [INF] 1/10 - EntityGenerateCommand completed.                           | Duration: 833 ms.
    2025-01-03 13:29:39.579 -08:00 [INF] 2/10 - RepositoryCommand started...
    2025-01-03 13:29:39.722 -08:00 [INF] 2/10 - RepositoryCommand completed.                               | Duration: 143 ms.
    2025-01-03 13:29:39.722 -08:00 [INF] 3/10 - ManagerCommand started...
    2025-01-03 13:29:39.757 -08:00 [INF] 3/10 - ManagerCommand completed.                                  | Duration: 34 ms.
    2025-01-03 13:29:39.757 -08:00 [INF] 4/10 - AppServiceCommand started...
    2025-01-03 13:29:42.157 -08:00 [INF] 4/10 - AppServiceCommand completed.                               | Duration: 2399 ms.
    2025-01-03 13:29:42.157 -08:00 [INF] 5/10 - ProxyControllerCommand started...
    2025-01-03 13:29:42.206 -08:00 [INF] 5/10 - ProxyControllerCommand completed.                          | Duration: 48 ms.
    2025-01-03 13:29:42.206 -08:00 [INF] 6/10 - PermissionCommand started...
    2025-01-03 13:29:42.243 -08:00 [INF] 6/10 - PermissionCommand completed.                               | Duration: 36 ms.
    2025-01-03 13:29:42.243 -08:00 [INF] 7/10 - ApplicationObjectMappingCommand started...
    2025-01-03 13:29:42.262 -08:00 [INF] 7/10 - ApplicationObjectMappingCommand completed.                 | Duration: 19 ms.
    2025-01-03 13:29:42.262 -08:00 [INF] 8/10 - GenerateProxyCommand started...
    2025-01-03 13:29:42.263 -08:00 [INF] 8/10 - GenerateProxyCommand completed.                            | Duration: 0 ms.
    2025-01-03 13:29:42.263 -08:00 [INF] 9/10 - AngularUiGenerateWithSchematicsCommand started...
    2025-01-03 13:29:57.927 -08:00 [INF] Running the Angular Schematics command:
    node run-schematics.mjs "C:/SourceCode/TestProject/apps/angular/.suite/schematics/node_modules/.bin/ng" g ".suite/schematics/collection.json:entity" app-nolayers-pro TestProject.Test "C:/SourceCode/TestProject/services/test/.suite/entities/Test.json" "C:/SourceCode/TestProject/apps/angular" 
    2025-01-03 13:29:59.336 -08:00 [INF] Angular Schematics command failed.
    C:\SourceCode\TestProject\apps\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-nolayers-pro --target TestProject.Test --source C:/SourceCode/TestProject/services/test/.suite/entities/Test.json
    [Project Not Found] A project matching entity solution name or a default project does not exist in your Angular workspace.
        at makeError (C:\SourceCode\TestProject\apps\angular\.suite\schematics\node_modules\execa\lib\error.js:60:11)
        at handlePromise (C:\SourceCode\TestProject\apps\angular\.suite\schematics\node_modules\execa\index.js:118:26)
        at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
        at async file:///C:/SourceCode/TestProject/apps/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-nolayers-pro --target TestProject.Test --source C:/SourceCode/TestProject/services/test/.suite/entities/Test.json',
      command: '.suite/schematics/node_modules/.bin/ng g .suite/schematics/collection.json:entity --template app-nolayers-pro --target TestProject.Test --source C:/SourceCode/TestProject/services/test/.suite/entities/Test.json',
      escapedCommand: '".suite/schematics/node_modules/.bin/ng" g ".suite/schematics/collection.json:entity" --template app-nolayers-pro --target TestProject.Test --source "C:/SourceCode/TestProject/services/test/.suite/entities/Test.json"',
      exitCode: 1,
      signal: undefined,
      signalDescription: undefined,
      stdout: '',
      stderr: '\x1B[1m\x1B[31m[Project Not Found] A project matching entity solution name or a default project does not exist in your Angular workspace.\x1B[39m\x1B[22m',
      failed: true,
      timedOut: false,
      isCanceled: false,
      killed: false
    }
    
    
    

    I am not sure what else can I provide ?

    I am using the latest version of everything, Abp Studio, AbpSuite, Abp Io

Made with ❤️ on ABP v9.1.0-preview. Updated on January 02, 2025, 07:06