Open Closed

Error ABP 5.3 leptonX #3253


User avatar
0
berly created
  • ABP Framework version: v5.3
  • UI type: Blazor
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:
  • Steps to reproduce the issue: 1 - Create new project with abp suite with pwa blazor 2 - Follow the tuto for migrate lepton to letponX 3 - Migration & Host & Blazor 4 - Blazor error

crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100] Unhandled exception rendering component: Could not find 'initLeptonX' ('initLeptonX' was undefined). Error: Could not find 'initLeptonX' ('initLeptonX' was undefined). at https://localhost:44349/global.js?_v=637895241250928036:40:328 at Array.forEach (<anonymous>) at a.findFunction (https://localhost:44349/global.js?_v=637895241250928036:40:296) at _ (https://localhost:44349/global.js?_v=637895241250928036:40:2437) at https://localhost:44349/global.js?_v=637895241250928036:40:3325 at new Promise (<anonymous>) at Object.beginInvokeJSFromDotNet (https://localhost:44349/global.js?_v=637895241250928036:40:3306) at Object.Rt [as invokeJSFromDotNet] (https://localhost:44349/global.js?_v=637895241250928036:40:59738) at _mono_wasm_invoke_js_blazor (https://localhost:44349/_framework/dotnet.6.0.4.dckq00jdfr.js:1:195300) at wasm://wasm/00970c26:wasm-function[219]:0x1a0fb Microsoft.JSInterop.JSException: Could not find 'initLeptonX' ('initLeptonX' was undefined). Error: Could not find 'initLeptonX' ('initLeptonX' was undefined). at https://localhost:44349/global.js?_v=637895241250928036:40:328 at Array.forEach (<anonymous>) at a.findFunction (https://localhost:44349/global.js?_v=637895241250928036:40:296) at _ (https://localhost:44349/global.js?_v=637895241250928036:40:2437) at https://localhost:44349/global.js?_v=637895241250928036:40:3325 at new Promise (<anonymous>) at Object.beginInvokeJSFromDotNet (https://localhost:44349/global.js?_v=637895241250928036:40:3306) at Object.Rt [as invokeJSFromDotNet] (https://localhost:44349/global.js?_v=637895241250928036:40:59738) at _mono_wasm_invoke_js_blazor (https://localhost:44349/_framework/dotnet.6.0.4.dckq00jdfr.js:1:195300) at wasm://wasm/00970c26:wasm-function[219]:0x1a0fb at Microsoft.JSInterop.JSRuntime.<InvokeAsync>d__16`1[[Microsoft.JSInterop.Infrastructure.IJSVoidResult, Microsoft.JSInterop, Version=6.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60]].MoveNext() at Microsoft.JSInterop.JSRuntimeExtensions.InvokeVoidAsync(IJSRuntime jsRuntime, String identifier, Object[] args) at Volo.Abp.AspNetCore.Components.Web.LeptonXTheme.Components.ApplicationLayout.SideMenuLayout.OnAfterRenderAsync(Boolean firstRender) at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)


5 Answer(s)
  • User Avatar
    0
    enisn created
    Support Team .NET Developer

    Did you get any error while executing abp bundle command?

    It seems your bundle couldn't be generated. Can you try again to run abp bundle command and share the results?

  • User Avatar
    0
    berly created

    I never used abp bundle, with blazor? Why not add it in the doc? I will try.

  • User Avatar
    0
    enisn created
    Support Team .NET Developer

    You might be looking for Blazor Server documentation?

    It already exists in documentation.

    Can you check and inform us? https://docs.abp.io/en/abp/latest/Themes/LeptonXLite/blazor?UI=Blazor

  • User Avatar
    0
    berly created

    Yes its good, thanks, i don't see this line.

    I little bug =>

  • User Avatar
    0
    enisn created
    Support Team .NET Developer

    Yes its good, thanks, i don't see this line.

    I little bug =>

    Thanks for your feedback, We're working on this problem

Made with ❤️ on ABP v9.1.0-preview. Updated on December 10, 2024, 06:38