Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

AspNet Zero Power tool error #10437


User avatar
0
shridhar.mole created

I'm trying to use the AspNet Zero Power tool to create new Entities. While I was able to generate the APIs, migrations, database tables successfully, the angular part throw the following errors in the serviceproxy file.

src/app/admin/countries/countries/create-or-edit-country-modal.component.ts:4:33 - error TS2305: Module '"../../../../shared/service-proxies/service-proxies"' has no exported member 'CreateOrEditCountryDto'.

Please let me know if I'm missing somthing here.

  • Product version is 10.3.
  • Product type is Angular.
  • Product framework type is .net core.
  • Currently using the default theme.

5 Answer(s)
  • User Avatar
    0
    musa.demir created

    Hi @shridhar.mole

    Can you please check if CreateOrEditCountryDto exist in server side. If exist run npm run nswag in a commond prompt in angular directory and see if new service proxy has same error.

  • User Avatar
    0
    shridhar.mole created

    Hi musa.demir

    Thanks for your reply. The CreateOrEditCountryDto is getting created in the server side therfore I ran the npm run nswag command in the angular directory as you suggested but it didn't solve the problem, rather I got more errors. Please refer to the screenshot.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @shridhar.mole

    Sorry for our late response. Could you share your generated json file for this entity ? You can find it under AspNetZeroRadTool folder in your project.

    Thanks,

  • User Avatar
    0
    shridhar.mole created

    @ismcagdas

    `{
      "IsRegenerate": false,
      "MenuPosition": "admin",
      "RelativeNamespace": "Countries",
      "EntityName": "Country",
      "EntityNamePlural": "Countries",
      "TableName": "TrCountries",
      "PrimaryKeyType": "int",
      "BaseClass": "Entity",
      "EntityHistory": false,
      "AutoMigration": true,
      "UpdateDatabase": true,
      "CreateUserInterface": true,
      "CreateViewOnly": true,
      "CreateExcelExport": true,
      "IsNonModalCRUDPage": false,
      "IsMasterDetailPage": false,
      "PagePermission": {
        "Host": true,
        "Tenant": false
      },
      "Properties": [
        {
          "Name": "Name",
          "Type": "string",
          "MaxLength": 100,
          "MinLength": 0,
          "Range": {
            "IsRangeSet": false,
            "MinimumValue": 0.0,
            "MaximumValue": 0.0
          },
          "Required": true,
          "Nullable": false,
          "Regex": "",
          "UserInterface": {
            "AdvancedFilter": true,
            "List": true,
            "CreateOrUpdate": true
          }
        }
      ],
      "NavigationProperties": [],
      "NavigationPropertyOneToManyTables": [],
      "EnumDefinitions": [],
      "DbContext": null
    }`
    
  • User Avatar
    0
    musa.demir created

    Hi @shridhar.mole

    I could not reproduce the problem. Can you please share your project or a project that contains that problem? You can send them to [email protected]