Open Closed

Errors with basic app-pro template in 8.1.1 #7171


User avatar
0
brauerj@gc.adventist.org created

It looks like there is a bug in "abp new" for 8.1.1 with the basic theme

  • ABP Framework version: v8.1.1
  • UI Type:Blazor Server
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yno
  • Steps to reproduce the issue:

Run the following: abp new TestMe.MainApp -u blazor-server -csf --version 8.1.1 --theme basic -t app-pro

Gives These Errors:

C:\Users\xxxxxx\source\repos_build\TestMe.MainApp\src\TestMe.MainApp.Blazor\Pages_Host.cshtml(4,42): error CS0234: T he type or namespace name 'Basic' does not exist in the namespace 'Volo.Abp.AspNetCore.Components.Web' (are you missing an assembly reference?) [C:\Users\xxxxxx\source\repos_build\TestMe.MainApp\src\TestMe.MainApp.Blazor\TestMe.MainApp. Blazor.csproj] C:\Users\xxxxxx\source\repos_build\TestMe.MainApp\src\TestMe.MainApp.Blazor\MainAppBlazorModule.cs(70,12): error CS02 46: The type or namespace name 'AbpAspNetCoreMvcUiBasicThemeModule' could not be found (are you missing a using directi ve or an assembly reference?) [C:\Users\xxxxxx\source\repos_build\TestMe.MainApp\src\TestMe.MainApp.Blazor\TestMe.Mai nApp.Blazor.csproj] 0 Warning(s) 2 Error(s)

The template also seems to be using <HeadOutlet> when it should be using this in order to support the MVC pages such as the login page, right?

&lt;component type=&quot;typeof(HeadOutlet)&quot; render-mode=&quot;Server&quot; /&gt;

3 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    We will fix the problem.

    https://github.com/abpframework/abp/issues/19765

    The template also seems to be using <HeadOutlet> when it should be using this in order to support the MVC pages such as the login page, right?

    MVC pages don't need this.

  • User Avatar
    0
    brauerj@gc.adventist.org created

    <HeadOutlet/> doesn't seem to be recognized in the code I have from the template. Without <component type="typeof(HeadOutlet)" render-mode="Server" /> my styling "outlets" from blazor don't seem to be getting set.

    Besides later on in the same _Host.cshtml file. <component type="typeof(App)" render-mode="Server" /> is used instead of <App>

    Blazor tags are not supported in .cshtml files.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    You are right.

    I create an issue: https://github.com/abpframework/abp/issues/19823

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