Skip to content

Unexpected use of an aliased name #7287

Open
@isaacrlevin

Description

@isaacrlevin

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

When I try to add a MudBlazor Autocomplete control to a new Blazor WASM project, I get the following error

image

Expected Behavior

Build and run project

Steps To Reproduce

dotnet new blazorwasm

Follow getting started steps for MudBlazor
https://github.com/MudBlazor/MudBlazor#quick-installation-guide

Create simple result class

public class SearchBarResultView
{
    public string Text {get; set;}
}

Than add Autocomplete component to Index.razor with Search function

<MudAutocomplete T="SearchBarResultView" Label="US States" @bind-Value="selectedResult" SearchFunc="@Search2" />

private async Task<IEnumerable<SearchBarResultView>> Search1(string value)
{
    return new List<SearchBarResultView>();
}

If you build you should get the above error. I pinned with global.json to .NET 6 and do not have issues.

Exceptions (if any)

No response

.NET Version

No response

Anything else?

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions