Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Icons missing after upgrading to v8.0.0 #2130

Closed
benjaminoerskov opened this issue Dec 18, 2023 · 22 comments
Closed

Icons missing after upgrading to v8.0.0 #2130

benjaminoerskov opened this issue Dec 18, 2023 · 22 comments

Comments

@benjaminoerskov
Copy link

What happened: Icons are missing

What you expected to happen: See the icons

How to reproduce it (as minimally and precisely as possible): I Upgraded to v8.0.0.0

Anything else we need to know?: Please see attached screenshot. Am I missing something on setup, or is this a bug on the newest version? On the previous package, everything was displaying correctly.

Environment:

  • .NET Core version: 8
  • Healthchecks version: 8.0.0.0
  • Operative system: Linux
  • Others:
    HealthCheckIconsMissing
@phivanloi
Copy link

me too.

@MatheusXavier
Copy link

MatheusXavier commented Dec 19, 2023

Same issue here. I was using version 6.0.5 and everything was ok, after migrating to version 8.0.0 the icons are missing

@markmonster
Copy link
Contributor

I can see that loading a font-file fails.

image

@markmonster
Copy link
Contributor

Just running the HealthChecks.UI.Sample gives the same reproduction.

Found that the upgrade of css-loader from 4.3.0 to 6.8.1 caused the issue in this PR: #2051

Looks like that the font was inlined in version 4.3.0 till 6.7.4 and published as a separate file the most recent versions of css-loader 6.8.0 and upwards. I'm not a frontend developer, so have no clue what would be the best way to fix this. Rolling back to version 6.7.4 of css-loader sounds like only a temporary solution.

Anyone with a knowledge around webpack / css-loader who can fix this the correct way?

@chirag-shingala-tark
Copy link

Same issue facing.

@PatryxCShark
Copy link

Can sb fix it and release new version 8.0.1?

@dougcunha
Copy link

I've discovered a temporary solution that might be helpful.

To address the issue, you can activate static files handling in your application. Specifically, you'll need to include the file 1ae4e3706fe3f478fcc1.woff2 in the wwwroot\ui\resources directory of your project. Here's a snippet of code to illustrate how you can set this up:

builder.WebHost.UseWebRoot("wwwroot");

var app = builder.Build();

// This will enable the serving of static files from the specified directory
app.UseStaticFiles();

@markmonster
Copy link
Contributor

Where did you get the woff2 file from?

I'm now facing, below error in the temporary solution:
image

@dougcunha
Copy link

dougcunha commented Dec 27, 2023

Where did you get the woff2 file from?

I'm now facing, below error in the temporary solution: image

I got it from here https://github.com/Xabaril/AspNetCore.Diagnostics.HealthChecks/blob/master/src/HealthChecks.UI/assets/fonts/material.woff2

Just rename it to 1ae4e3706fe3f478fcc1.woff2 and you are ready to go.

@PatryxCShark
Copy link

And when I I have REST API application?

@dougcunha
Copy link

And when I I have REST API application?

The solution I proposed works just fine with REST API app.

@MarioDesenv
Copy link

And when I I have REST API application?

Here, I am still using "startup.cs" from the legacy .net version, so I just created the folders put the file there set the build action to "content" and copy to output to "copy always" and added the "app.UseStaticFiles();" inside the "Configure(IApplicationBuilder app)".

Now, all icons working again.
Thanks, @dougcunha!!

@sesausmd
Copy link

Same error here.
v 8.0.0

@TeuryBazzoBRQ
Copy link

Same here v 8.0.0

@DeepWorksStudios
Copy link

same issue

@ceberttylertech
Copy link

I am having this issue too

@code1line
Copy link

Me too...

@code1line
Copy link

Please have a look at stackoverflow: Solution with custom.css-file

So the above mentioned woff-file is not needed.

@DefinitelyADev
Copy link

DefinitelyADev commented Apr 10, 2024

Please have a look at stackoverflow: Solution with custom.css-file

So the above mentioned woff-file is not needed.

@code1line This is a nice temporary solution, but this still should be fixed.

@harlam357
Copy link

Still an issue with v8.0.1. I used @dougcunha woff file workaround.

@Jamie-Clayton
Copy link
Contributor

fixed in #2217

dandrejvv added a commit to IntentArchitect/Intent.Modules.NET that referenced this issue Jul 11, 2024
…NET 8 due to the following issues:

    - [Icons missing after upgrading to v8.0.0](Xabaril/AspNetCore.Diagnostics.HealthChecks#2130).
    - [[UI] Relative Address for HealthCheckEndpoint with Kestrel at http://0.0.0.0:0](https://github.com/Xabaril/AspNetCore.Diagnostics.HealthChecks/issues/410).
@Alirexaa
Copy link
Collaborator

closed this as completed via #2217

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests