Ends in:
0 DAY
13 HRS
44 MIN
49 SEC
Ends in:
0 D
13 H
44 M
49 S
Open Closed

Error migrating leptonX #4803


User avatar
0
jhsanc created
  • ABP Framework version: v6.0.2
  • UI type: Blazor Webassembly
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:

After I migrate LeptonUI to LeptonX I get this error on initialize:

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:44307/global.js?_v=637977287865668241:52:328 at Array.forEach (<anonymous>) at a.findFunction (https://localhost:44307/global.js?_v=637977287865668241:52:296) at _ (https://localhost:44307/global.js?_v=637977287865668241:52:2437) at https://localhost:44307/global.js?_v=637977287865668241:52:3325 at new Promise (<anonymous>) at Object.beginInvokeJSFromDotNet (https://localhost:44307/global.js?_v=637977287865668241:52:3306) at Object.St [as invokeJSFromDotNet] (https://localhost:44307/global.js?_v=637977287865668241:52:59938) at _mono_wasm_invoke_js_blazor (https://localhost:44307/_framework/dotnet.6.0.15.t9qh4uqhdv.js:1:195300) at wasm://wasm/00971dfa:wasm-function[219]:0x1a4c1 Microsoft.JSInterop.JSException: Could not find 'initLeptonX' ('initLeptonX' was undefined). Error: Could not find 'initLeptonX' ('initLeptonX' was undefined). at https://localhost:44307/global.js?_v=637977287865668241:52:328 at Array.forEach (<anonymous>) at a.findFunction (https://localhost:44307/global.js?_v=637977287865668241:52:296) at _ (https://localhost:44307/global.js?_v=637977287865668241:52:2437) at https://localhost:44307/global.js?_v=637977287865668241:52:3325 at new Promise (<anonymous>) at Object.beginInvokeJSFromDotNet (https://localhost:44307/global.js?_v=637977287865668241:52:3306) at Object.St [as invokeJSFromDotNet] (https://localhost:44307/global.js?_v=637977287865668241:52:59938) at _mono_wasm_invoke_js_blazor (https://localhost:44307/_framework/dotnet.6.0.15.t9qh4uqhdv.js:1:195300) at wasm://wasm/00971dfa:wasm-function[219]:0x1a4c1 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)

  • Steps to reproduce the issue:"

Then reading solutions I runned command abp bundle, but I have the next error:

If you can help I need migrate to OpenIdict and finally .net 7.

Thank you


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

    hi

    What's your CLI version? It must be the same as your project package version of ABP.

    migrate to OpenIdict and finally .net 7.

    https://docs.abp.io/en/commercial/latest/migration-guides/openIddict-step-by-step

  • User Avatar
    0
    jhsanc created

    First time not, but I uninstall and install the same version for cli, suite and solution.

    Thanks.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    What is the output of the abp bundle command now?

  • User Avatar
    0
    jhsanc created

    Hello now I uninstall and install abp cli and suite, and now found but now I have other problem with migration.

    I followed this steps:

    https://docs.abp.io/en/commercial/latest/migration-guides/openIddict-step-by-step

    I runned DbMigrator project first, but now I have this error:

    This is the output when I run DbMigrator project:

    Thank you,

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Check the logs.txt of auth server project.

    You can create a new project and compare the appsettings.json of DbMigrator and the OpenIddictDataSeedContributor class.

  • User Avatar
    0
    jhsanc created

    Hi maliming,

    I created the new project and compare files, now one table of OpenIddict was filled. But the error continue, review logs files a see this:

    2023-04-13 16:58:09.609 -06:00 [INF] Request starting HTTP/2 GET https://localhost:44332/connect/authorize?client_id=Sports_Blazor&redirect_uri=https%3A%2F%2Flocalhost%3A44307%2Fauthentication%2Flogin-callback&response_type=code&scope=openid%20profile%20Sports%20role%20email%20phone&state=b0c1392ee8b7464b923b72597abc1591&code_challenge=ZJIDvVpo0bSk94VzaSzmpPqqoj0pL3MTZfMqyKtlHt4&code_challenge_method=S256&response_mode=query - - 2023-04-13 16:58:09.613 -06:00 [DBG] Request path /connect/authorize matched to endpoint type Authorize 2023-04-13 16:58:09.615 -06:00 [DBG] Endpoint enabled: Authorize, successfully created handler: IdentityServer4.Endpoints.AuthorizeEndpoint 2023-04-13 16:58:09.615 -06:00 [INF] Invoking IdentityServer endpoint: IdentityServer4.Endpoints.AuthorizeEndpoint for /connect/authorize 2023-04-13 16:58:09.615 -06:00 [DBG] Start authorize request 2023-04-13 16:58:09.615 -06:00 [DBG] No user present in authorize request 2023-04-13 16:58:09.615 -06:00 [DBG] Start authorize request protocol validation 2023-04-13 16:58:09.615 -06:00 [ERR] Unknown client or not enabled: Sports_Blazor {"ClientId":null,"ClientName":null,"RedirectUri":null,"AllowedRedirectUris":null,"SubjectId":"anonymous","ResponseType":null,"ResponseMode":null,"GrantType":null,"RequestedScopes":"","State":null,"UiLocales":null,"Nonce":null,"AuthenticationContextReferenceClasses":null,"DisplayMode":null,"PromptMode":"","MaxAge":null,"LoginHint":null,"SessionId":null,"Raw":{"client_id":"Sports_Blazor","redirect_uri":"https://localhost:44307/authentication/login-callback","response_type":"code","scope":"openid profile Sports role email phone","state":"b0c1392ee8b7464b923b72597abc1591","code_challenge":"ZJIDvVpo0bSk94VzaSzmpPqqoj0pL3MTZfMqyKtlHt4","code_challenge_method":"S256","response_mode":"query"},"$type":"AuthorizeRequestValidationLog"} 2023-04-13 16:58:09.615 -06:00 [ERR] Request validation failed

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Unknown client or not enabled: Sports_Blazor

    Please remember to clear Redis, which may cache outdated data.

  • User Avatar
    0
    jhsanc created

    Hi maliming,

    I have Redis disabled, but how I can do to clear Redis?.

    And if are disabled, It's necessary to clean it.

    Thanks

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Are there any steps that I can reproduce your problem?

  • User Avatar
    0
    jhsanc created

    Now I found the solution.

    Can you refund this ticket.

    Thank you,

Made with ❤️ on ABP v9.1.0-preview. Updated on December 05, 2024, 12:19