Ends in:
2 DAYS
4 HRS
18 MIN
56 SEC
Ends in:
2 D
4 H
18 M
56 S
Open Closed

Migrate from 8.3.2 Blazor Webassembly to Blazor Web App #8412


User avatar
0
franciscosl created

Hi, I am having some problems migrating a solution from blazor web assembly to blazor web app.

I have tried the steps mentioned in the different links: https://abp.io/docs/latest/release-info/migration-guides/abp-8-2-blazor-web-app https://abp.io/support/questions/8378/Render-Modes https://github.com/abpframework/abp/issues/20128

The documentation is not clear, it does not detail anything step by step, it does not indicate if you have to create a new solution, create new projects... In the documentation it is mentioned that you have to run the project "Blazor.Webapp" and the cli only generates "Blazor" and "Blazor.Client". I need a solution because I have to migrate 6 solutions.

Attached are screenshots of the errors I have found:

  • When overwriting pages:
  • After logging in:

There are many errors that I am finding


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

    hi

    You have two options. Which one do you prefer? A or B?

    A:

    The new webapp (blazor wasm) project include two projects:

    1. MyProjectName (ASP.NET Core app, a new project)
    2. MyProjectName.Client (Blazor wasm app, Your current wasm project)

    You need to create a new project for your wasm project. the render mode is InteractiveWebAssembly(prerender: false)

    same as abp new BookStore -t app -u blazor

    B: The new webapp (server and wasm) project include two projects:

    1. MyProjectName (Blazor server app)
    2. MyProjectName.Client (Blazor wasm app, Your current wasm project)

    You need to create a new Blazor server app.

    In this options, your app have two projects, server and wasm, The render mode is InteractiveAuto

    same as abp new BookStore -t app -u blazor-webapp

  • User Avatar
    0
    franciscosl created

    Option B is the one I am applying and I keep getting errors.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Option B is the one I am applying and I keep getting errors.

    ok, in this mode. You need to create a new Blazor server app and depend on the necessary modules(blazor server module).

    abp new BookStore -t app -u blazor-webapp

    You can create a new template project to see the

    MyProjectName (Blazor server app) and MyProjectName.Client (Blazor wasm app), they are two indenpended app. https://abp.io/docs/latest/release-info/migration-guides/abp-8-2-blazor-web-app#the-key-changes-of-the-new-blazor-web-app-template

  • User Avatar
    0
    franciscosl created

    After solving those steps, I now get the following errors, any ideas?

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