Starts in:
1 DAY
21 HRS
30 MIN
53 SEC
Starts in:
1 D
21 H
30 M
53 S

Activities of "okains"

This is still throwing the same error, screenshot below. I didn't change any code, just generated straight from ABP Suite, exactly as discussed. Added a Country as shown, with Asia selected, and getting the same error message.

I have tested this in Chrome, Firefox, Edge, Brave browsers, all the same error.

The DataGrid field is generated as nullable right from ABP Suite:

          <DataGridColumn TItem="CountryDto"
                  Field="PhoneCountryCode"
                  Caption="@L["PhoneCountryCode"]">
          </DataGridColumn>

          <DataGridColumn TItem="CountryDto"
                  Field="WorldRegion?"
                  Caption="@L["WorldRegion"]">
                <DisplayTemplate>
                    @L[$"Enum:WorldRegion.{context.WorldRegion?.ToString("d")}"]
                </DisplayTemplate>
          </DataGridColumn>
          

  • ABP Framework version: v8.0.3
  • UI Type: Blazor Server
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): NO
  • Exception message and full stack trace:

System.AggregateException: One or more errors occurred. (Cannot detect the member of SITO.Countries.CountryDto (Parameter 'WorldRegion?')) ---> System.ArgumentException: Cannot detect the member of SITO.Countries.CountryDto (Parameter 'WorldRegion?') at Blazorise.DataGrid.Utils.FunctionCompiler.GetSafePropertyOrField(Expression item, String propertyOrFieldName) at Blazorise.DataGrid.Utils.FunctionCompiler.CreateValueGetter[TItem](String fieldName) at Blazorise.DataGrid.DataGridColumn1.<.ctor>b__10_2() at System.Lazy1.ViaFactory(LazyThreadSafetyMode mode) at System.Lazy1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor) at System.Lazy1.CreateValue() at Blazorise.DataGrid.DataGridColumn1.GetValue(TItem item) at Blazorise.DataGrid._BaseDataGridRow1.OnAfterRenderAsync(Boolean firstRender) at Microsoft.AspNetCore.Components.Rendering.ComponentState.NotifyRenderCompletedAsync() --- End of inner exception stack trace ---

  • Steps to reproduce the issue:

This is happening with all grids that bind to an enum. The data loads and renders correctly, then I get a client error along with the above Stack Trace:

  if (!t)
            throw new Error(`No interop methods are registered for renderer ${e}`);
        return t
    }

Also for more information here is the CountryDto:

namespace SITO.Countries { public abstract class CountryDtoBase : FullAuditedEntityDto<Guid> { public string? Name { get; set; } public string? Currency { get; set; } public string? ISOCode { get; set; } public int PhoneCountryCode { get; set; } public WorldRegion? WorldRegion { get; set; } public bool IsPublished { get; set; }

}

}

I have already generated code with ABPSuite for this entire data model, with maybe 10 affected entities. Need to find a fix for this ASAP so we can move forward.

Thanks,

Karim

Hi Anjali,

Upgrading to 2.4.1 and bundle / clear cache etc worked. Thanks for your help!

Karim

Even if this doesn't help you try to update Leptonx version.

Looks up to date here, version 2.40

Hi Anjali,

OK I am following these steps exactly as above but still getting the same result.

First of all to confirm, when you refer to the Host project, I am assuming that you mean the HttpApi.Host project? In my case ESv2.HttpApi.Host ( screenshot below ) ?

Second, after a dotnet clean / restore if I run abp bundle on the Blazor project I get an error as noted in a previous message on this chain. So I need to build the Blazor project first, then I can run abp bundle without any issues.

Other than that I am doing everything exactly as stated and getting the same error. The only other thing that I can think of that I have not used before is the PWA support, could that have anything to do with this?

Hi Anjali,

I have followed your previous steps multiple times, they do not resolve the problem. I am sure that we are missing a step here.

This is a Blazor WASM project, I don't see a node_modules folder. I did run yarn and npm but they didn't do much. The repeated the previous steps, and got the same result.

You mentioned earlier that you have released a patch release to fix this:

We have released a patch release for LeptonXToolBar issue.

You haven't told me how to get this patch release, is this the step that we are missing here? I see that you are working on a 7.4 Patch release, is the actual fix for this in there?

Thanks,

Karim

Hi Anjali,

Any update on this? I just saw the 7.4-patch Milestone but I can't seem to find this issue documented there. If there is another way to fix this, or if I am missing a step with your instructions above please let me know, I need to demo this soon and this bug is preventing me from doing so.

Thanks,

Karim

Hi,

I did exactly as you said. However when running abp bundle after clean / restore I get the same error noted above, i.e. cannot find my project assembly. So, I rebuild, then run abp bundle and everything works fine.

However still the same issue when loading the WASM project. Are we missing a step here?

Hi,

Thanks for getting back to me so quickly. Can't seem to get this to work though, I am not familiar with the abp bundle command so probably doing something wrong. Just cleaned my solution in VStudio and ran abp clean in the blazor project. Ran abp bundle as you suggested and got this error:

Any ideas?

OK great, thanks Anjali. Any idea of when the next release will be?

Showing 131 to 140 of 164 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06