Open Closed

"abp is not defined" error when customising theme for Account module #1590


0
Sturla created

Hi

More details (images etc.) for my problem can be found as a comment to this gist for customising the Register page for the Account module.

But when I try to implement this I get the following errors when trying to customise the Lepton theme.

Uncaught ReferenceError: $ is not defined in ApplicationConfigurationScript and Uncaught ReferenceError: abp is not defined in ServiceProxyScript

There wasa support ticket that asked the same question but never had a resolution. I have gone over that and I can browse to the ServiceProxyScript and this is running locally and not in Azure and no errors in the logfiles in the IdentityServer.

Btw I'm using the source code for Volo.Account.Pro module (I havenĀ“t changed it yet so its 100% the same) and therefor doing these changes in the IdentityServer and not the HttpApi.Host if that matters.

Any ideas or something for me to try out?

  • ABP Framework version: 4.3.2
  • UI type:Blazor
  • DB provider: EF Core
  • Identity Server Separated: yes

2 Answer(s)
  • 0
    maliming created
    Support Team

    hi Sturla

    Can you share your project with me? [email protected]

  • 0
    maliming created
    Support Team

    hi

    Please add _ViewImports.cshtml to your src/BSR.Beinni.IdentityServer/Themes/Lepton

    @using System.Globalization
    @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
    @addTagHelper *, Volo.Abp.AspNetCore.Mvc.UI.Bootstrap
    @addTagHelper *, Volo.Abp.AspNetCore.Mvc.UI.Bundling