Open Closed

Blazor Enum Extra Properties not resolving when serializing/deserializing enum values as string #3417


User avatar
0
maksym created
  • ABP Framework version: v5.3.1
  • UI type: Blazor
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace: AbpException: Could not find the bundle file '/client-proxies/identity-proxy.js' for the bundle 'Volo.CmsKit.Admin.Web.Pages.CmsKit.Menus.MenuItems.IndexModel'!
  • Steps to reproduce the issue:"

We initially created override code for the Menus page for the CmsKit in an MVC-based project without issues.

But now we are trying to migrate our infrastructure to Blazor and tried to override the CmsKit page the same way with no success.

Here are the page files we used to override CmsKit (which worked in MVC and not in Blazor):

And the problematic area seems to be here in the index.cshtml file

And gives us the following error:

Is there a way to generate these proxy javascript files?

We've tried everything from "abp install-libs" and deleting the yarn.lock files before to recreating a new Blazor solution from scratch and even trying to run the javascript proxy generator as well as reinstalling the Volo.Indentity.Pro module into the solution.


2 Answer(s)
  • User Avatar
    2
    maliming created
    Support Team Fullstack Developer

    hi

    The /client-proxies/identity-proxy.js exists in Volo.Abp.Identity.Pro.Web\wwwroot\client-proxies.

    Did you depend on the AbpIdentityWebModule module?

  • User Avatar
    0
    maksym created

    Yup, that worked!

    Thanks for the help!

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