Open Closed

ERROR TypeError: item_r1.visible is not a function when using the basic theme with module template #4774


User avatar
0
selwade created
  • ABP Framework version: v7.0.2
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace: ERROR TypeError: item_r1.visible is not a function
  • Steps to reproduce the issue:" Create a new module via abp suite, choose "basic theme" then run the angular application.

I need the basic theme in order to customize another theme.

Thank you.

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

10 Answer(s)
  • User Avatar
    0
    mahmut.gundogdu created

    Could you describe how to produce that issue ? I have created an Angular app with AbpSuite. I have added a module, but the module template doesn't have a UI selection option. Please give me more information to produce issue.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    selwade created

    Hi Mahmut, The below image is steps to reproduce, and about choosing a basic template, it was my bad, I just picked the module after choosing the basic template from the application template.

    Another question what would be better if I am planning to change the whole theme? starting from basic or lepton theme?

    Regards, Mustafa Issa.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    selwade created

    I downgraded to 7.0.2 and it is working fine

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    deathmid2233@gmail.com created

    I have the same problem

    I upgraded my angular project's packages from 7.0.0 to 7.1.0 ERROR TypeError: item_r1.visible is not a function

    When I upgrade from 7.0.0 to 7.0.2 everything is normal

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    mahmut.gundogdu created

    I have the same problem

    I upgraded my angular project's packages from 7.0.0 to 7.1.0 ERROR TypeError: item_r1.visible is not a function

    When I upgrade from 7.0.0 to 7.0.2 everything is normal

    Could you describe your steps? You created an app in 7.0, updated to 7.1, and got the error?

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    mahmut.gundogdu created

    Hi Mahmut, The below image is steps to reproduce, and about choosing a basic template, it was my bad, I just picked the module after choosing the basic template from the application template.

    Another question what would be better if I am planning to change the whole theme? starting from basic or lepton theme?

    Regards, Mustafa Issa.

    If I changed the whole theme in ABP, I would choose the basic theme because that is much lighter. there is no providers or theme based logics in "Basic Theme". it just plain bootstrap implemetation.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    mahmut.gundogdu created

    I have produced the issue. For a now, you can use 7.0.2 or use Lepton-X instead of Lepton. we will release a patch in the soon.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    mahmut.gundogdu created

    Also there is a solution for this bug You can change your buggy navbar component with ABP Component-Replacement https://docs.abp.io/en/abp/latest/UI/Angular/Component-Replacement

    https://gist.github.com/mahmut-gundogdu/6e1db9cebc6084274ac4d56be8aac963

    when the following week. The issue will be resolved with the release of a new patch.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    selwade created

    Thank you Mahmut how can I use lepton-x theme with the module template?

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    mahmut.gundogdu created

    For the angular follow the steps (just a there is a minor issue in docs, use yarn add @volosoft/abp.ng.theme.lepton-x instead of @ preview yarn add @volosoft/abp.ng.theme.lepton-x@preview https://docs.abp.io/en/commercial/latest/themes/lepton-x/angular

    for the backend go to host/YourModuleName.AuthServer/package.json remove "@volo/abp.aspnetcore.mvc.ui.theme.lepton": "xxx", add "@volosoft/abp.ng.theme.lepton-x": "^2.0.0" open host/YourModuleName.AuthServer/YourModuleName.AuthServer.csproj with a text editor. remove

         <PackageReference Include="Volo.Abp.LeptonTheme.Management.HttpApi" Version="7.x.0" />
        <PackageReference Include="Volo.Abp.LeptonTheme.Management.Application" Version="7.x.0" />
        <PackageReference Include="Volo.Abp.LeptonTheme.Management.Domain" Version="7.x.0" />
    

    find

        <PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.Theme.Lepton" Version="7.x.0" />
    

    replace

        <PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonX" Version="2.0.0" />
    
    

    open MyModuleProAppAuthServerModule.cs with text editor

    //Remove
    using Volo.Abp.LeptonTheme;
    using Volo.Abp.LeptonTheme.Management;
    //Remove
      typeof(LeptonThemeManagementHttpApiModule),
       typeof(LeptonThemeManagementApplicationModule),
       typeof(LeptonThemeManagementDomainModule),
    
    
    // Replace
     //using Volo.Abp.AspNetCore.Mvc.UI.Theme.Lepton;
    using Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonX;
    

    run abp install-libs on host/YourModuleName.AuthServer

    then open YourModuleName.HttpApi.Host.csproj with text editor

    // remove 
      <PackageReference Include="Volo.Abp.LeptonTheme.Management.Application" Version="7.x.0" />
        <PackageReference Include="Volo.Abp.LeptonTheme.Management.Domain" Version="7.x.0" />
      
    //replace
    //    <PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.Theme.Lepton" Version="7.1.0" />
        <PackageReference Include="Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonX" Version="2.0.0" />
    

    then open YourModuleNameHttpApiHostModule.cs

    //Remove 
    using Volo.Abp.LeptonTheme.Management;
    //...
     typeof(LeptonThemeManagementApplicationModule),
     typeof(LeptonThemeManagementDomainModule),
    
    //Replace
    // using Volo.Abp.AspNetCore.Mvc.UI.Theme.Lepton;
    using Volo.Abp.AspNetCore.Mvc.UI.Theme.LeptonX;
    //...
    //     typeof(AbpAspNetCoreMvcUiLeptonThemeModule),
    typeof(AbpAspNetCoreMvcUiLeptonXThemeModule),
    

    then your backend and frontend work with Lepton-X

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.8.0-preview. Updated on September 16, 2026, 14:50
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.