Skip to content

Styles from library component get lost after hotreload #45987

Open
@Bartmax

Description

@Bartmax

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

Having a library with component and css isolation, everything works fine until hotreload kicks in and remove the stylesheet css isolation from the library component.

On hotreaload, the css file is removed
inspecting the sources, before hotreload we an see how the css is there
image

but after hotreload the import is gone
image

this is happening on dev machine and refresh doesn't solve the issue, I need to re-compile the solution.

Expected Behavior

No response

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

No response

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Pillar: Technical DebtPriority:1Work that is critical for the release, but we could probably ship withoutarea-blazorIncludes: Blazor, Razor ComponentsbugThis issue describes a behavior which is not expected - a bug.feature-css-isolationThis issue is related to CSS Isolation featurefeature-hot-reloadThis issue is related to the Hot Reload feaature

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions