Open Closed

abp 5.2 blazor wasm don't working. #2856


User avatar
0
mahuwei created

Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.

If you're creating a bug/problem report, please include followings:

  • ABP Framework version: v5.2.0
  • UI type: Blazor wasm
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • blazor ui:
Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
     Unhandled exception rendering component: Unable to set property 'Color' on object of type 'Blazorise.Bootstrap5.Button'. The error was: Specified cast is not valid.
System.InvalidOperationException: Unable to set property 'Color' on object of type 'Blazorise.Bootstrap5.Button'. The error was: Specified cast is not valid.
---> System.InvalidCastException: Specified cast is not valid.
  at Microsoft.AspNetCore.Components.Reflection.PropertySetter.CallPropertySetter[Button,Color](Action`2 setter, Object target, Object value)
  at Microsoft.AspNetCore.Components.Reflection.PropertySetter.SetValue(Object target, Object value)
  at Microsoft.AspNetCore.Components.Reflection.ComponentProperties.<SetProperties>g__SetProperty|3_0(Object target, PropertySetter writer, String parameterName, Object value)
  --- End of inner exception stack trace ---
  at Microsoft.AspNetCore.Components.Reflection.ComponentProperties.<SetProperties>g__SetProperty|3_0(Object target, PropertySetter writer, String parameterName, Object value)
  at Microsoft.AspNetCore.Components.Reflection.ComponentProperties.SetProperties(ParameterView& parameters, Object target)
  at Microsoft.AspNetCore.Components.ParameterView.SetParameterProperties(Object target)
  at Microsoft.AspNetCore.Components.ComponentBase.SetParametersAsync(ParameterView parameters)
  at Blazorise.BaseComponent.SetParametersAsync(ParameterView parameters)
  at Microsoft.AspNetCore.Components.Rendering.ComponentState.SupplyCombinedParameters(ParameterView directAndCascadingParameters)

  • Steps to reproduce the issue:"

10 Answer(s)
  • User Avatar
    0
    wojt created

    I haven’t played with 5.2 yet but worth double checking that the blazorise packages have been upgraded to >=1.0

  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    Hi @mahuwei, thanks for reporting. I'll try and write you back asap.

  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    Hi, I've created an app-pro template with blazor-wasm as UI and I didn't encounter any errors. Can you provide more information? For example, did you upgrade your application to v5.2.0? etc.

  • User Avatar
    0
    mahuwei created

    Hi, I've created an app-pro template with blazor-wasm as UI and I didn't encounter any errors. Can you provide more information? For example, did you upgrade your application to v5.2.0? etc.

    Hi,

    Is it because of the following reasons.

    ❯ abp suite
    [09:01:34 INF] ABP CLI (https://abp.io)
    [09:01:34 INF] Version 5.2.0 (Stable)
    Starting Suite v5.2.0 ...
    Opening http://localhost:3000
    Press Ctrl+C to shut down.
    yarn install v1.22.17
    [1/4] Resolving packages...
    [2/4] Fetching packages...
    [3/4] Linking dependencies...
    warning "@volo/abp.aspnetcore.mvc.ui.theme.lepton > @volo/abp.aspnetcore.mvc.ui.theme.commercial > @abp/aspnetcore.mvc.ui.theme.shared > @abp/bootstrap > bootstrap@5.1.3" has unmet peer dependency "@popperjs/core@^2.10.2".
    warning "@volo/abp.aspnetcore.mvc.ui.theme.lepton > @volo/abp.aspnetcore.mvc.ui.theme.commercial > @abp/aspnetcore.mvc.ui.theme.shared > @abp/jquery-validation-unobtrusive > @abp/jquery-validation > jquery-validation@1.19.3" has unmet peer dependency "jquery@^1.7 || ^2.0 || ^3.1".
    [4/4] Building fresh packages...
    
    success Saved lockfile.
    Done in 4.81s.
    yarn install v1.22.17```
    
  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    Is it because of the following reasons.

    ❯ abp suite 
    [09:01:34 INF] ABP CLI (https://abp.io) 
    [09:01:34 INF] Version 5.2.0 (Stable) 
    Starting Suite v5.2.0 ... 
    Opening http://localhost:3000 
    Press Ctrl+C to shut down. 
    yarn install v1.22.17 
    [1/4] Resolving packages... 
    [2/4] Fetching packages... 
    [3/4] Linking dependencies... 
    warning "@volo/abp.aspnetcore.mvc.ui.theme.lepton > @volo/abp.aspnetcore.mvc.ui.theme.commercial > @abp/aspnetcore.mvc.ui.theme.shared > @abp/bootstrap > bootstrap@5.1.3" has unmet peer dependency "@popperjs/core@^2.10.2". 
    warning "@volo/abp.aspnetcore.mvc.ui.theme.lepton > @volo/abp.aspnetcore.mvc.ui.theme.commercial > @abp/aspnetcore.mvc.ui.theme.shared > @abp/jquery-validation-unobtrusive > @abp/jquery-validation > jquery-validation@1.19.3" has unmet peer dependency "jquery@^1.7 || ^2.0 || ^3.1". 
    [4/4] Building fresh packages... 
     
    success Saved lockfile. 
    Done in 4.81s. 
    yarn install v1.22.17``` 
    

    Hi, I don't see any problem in here (they are just warning messages) and also I could not reproduce your problem. So, if it's possible can you share your project with me via email (engin.veske@volosoft.com)?

  • User Avatar
    0
    mahuwei created

    ok, I send a mail. ps: abp v5.2.0 should : yarn install v1.22.18?

  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    Thanks, I'll wait for your email.

    abp v5.2.0 should : yarn install v1.22.18?

    v1.22.18 is your yarn version.

  • User Avatar
    0
    mahuwei created

    Thanks, I'll wait for your email.

    abp v5.2.0 should : yarn install v1.22.18?

    v1.22.18 is your yarn version.

    Sorry, The mail came back. I think it's my computer. CRUD Page Generator:

  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    Hi, please check this answer and apply the changes suggested in the answer. It should solve your problem.

    Best Regards.

  • User Avatar
    0
    mahuwei created

    Hi, please check this answer and apply the changes suggested in the answer. It should solve your problem.

    Best Regards.

    Thanks. have a good.

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11