Skip to content

Scoped CSS isolation fails in production publish but works in Debug #64008

@alexEva94

Description

@alexEva94

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

So i have a simple scoped CSS file like this :

Image

The style is well apply in debug but once in production its not aplly at all, i have a different hash in the css file and in my element:

Image
Image

I already try cleaning, delete obj/bin, delete node module, delete .vs, it doesn't change anything.
When one of my teammate deploy in production, it works. When the others try, they have the same issue.

Expected Behavior

Style in my scoped css file is applied to my component in debug and in production.

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

9.0

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-blazorIncludes: Blazor, Razor Components

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions