Skip to content

MAUI Project can not import web-components script automatically #404

Closed
@RiuHDuo

Description

@RiuHDuo

I created a MAUI-Blazor project with VS 2022.
and installed Microsoft.Fast.Components.FluentUI 2.3.2
image

Add @using Microsoft.Fast.Components.FluentUI in _Imports.razor.
image

Add tag in index.html
image

Followed documents modified Promgram.cs
image

Add sample code in index.razor

<FluentCard Style="padding: 1.5rem; width: 400px; height: 250px; ">
  <h2>Hello World!</h2>
  <FluentButton Appearance="@Appearance.Accent">Click Me</FluentButton>
</FluentCard>

App can not work well.
image

If add web-component script in index.html.
image

it will work well.
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions