Closed philvessey closed 2 years ago
Can you please post the full error and your configuration: .NET version, Program.cs and index.html/cshtml
BlazorSize is tested end to end which includes a check during each testing phase for console errors. No such errors are happening in e2e.
Thanks
Hi
I also receive a similar error. TBF: I just rolled out the first version with blazorSize, previously I only used it on my LM. Here is the error from my Browser: (I know for me it doesn't show any MIME type)
I am using .NET 6.0 Program.cs
Thanks, and sorry if this doesn't fit here
Here is the information - safari reports it as 404, Firefox as invalid mime type. If rollback to 6.1.0 everything works fine - just bumping to 6.1.1 results in error with no other code changes.
Thanks for the extra details. I will try to reproduce this and issue a fix.
@philvessey What project type is this? And what .NET version is the project on?
@EdCharbeneau blazor wasm on net6.0 against sdk 6.0.1 and tried 6.0.2
It happens both locally and on a deploy to azure static web apps.
@philvessey I've tried creating every variety of Blazor project using two different machines. I can't seem to reproduce this.
I noticed your index file uses both _framework/blazor.webassembly.js
and the TagHelper <component ...>
.
I'm not sure what type of project this is.
Also, can you try clearing your /bin
and /obj
folders? There could be something cached in here causing issues.
I'm still working on the issue, just running out of potential problems.
@EdCharbeneau sounds like something my end then - I'll see if I can get it going with a simple dotnet new and go from there - I'll report back.
Puzzled a bit why previous version works - would there be a caching issue on static web apps as it takes down the staging each time?
"Puzzled a bit why previous version works - would there be a caching issue on static web apps as it takes down the staging each time?"
Doesn't make sense to me either.
There were hardly any changes to the codebase this update. I removed some log statements and updated two event handlers. Nothing that could be related IMO
@EdCharbeneau somethings not right - I get the same error on a vanilla dotnet new blazorwasm project. All I did here was add the package, add builder.Services.AddMediaQueryService(); to program cs and then wrap MediaQueryList to the Index.razor - and I get the error below.
@EdCharbeneau on above when I change to 6.1.0 - no issue and everything good again.
Windows, Linux, or Mac?
Maybe there's a file name convention or something breaking it. I'm on Windows, maybe that's why I don't see it?
I'm Mac locally - guessing static web app is Linux?
I notice in the scripts folder there are two files for the media module - one has capital B, other lowercase - is this causing it do you think as the console error suggests its trying to load the lower case one.
This is probably it. I thought I fixed this before, there must have been a regression when I merged some branches.
I'll post a prerelease build shortly for you to test. Yay Linux Vs. NTFS
The worse kind of issues 😔
@philvessey Please enable pre-release packages and update to 6.1.22-pre. If this fixes your issue I'll create a full release. https://www.nuget.org/packages/BlazorPro.BlazorSize/6.1.22-pre
The worse kind of issues
Especially when you fix them but Git seems to keep the old file name, because case is not a "change you can commit". I had to remove it, commit it, then add it back, commit again. 😡
@EdCharbeneau pre-release version is good to go - issue fixed ☺️
Fixed with 6.1.2 https://www.nuget.org/packages/BlazorPro.BlazorSize/6.1.2
Thanks for submitting and working through this patiently 🍻
Not a problem at all - happy to help!
Hi
Upgraded package to 6.1.1 and now get this error in the console - no other change in the code from 6.1.0
_content/BlazorPro.BlazorSize/blazorSizeMediaModule.js was blocked because of a disallowed MIME type (“text/html”)
Has something changed that has caused this?