Skip to content

Error when publishing Blazor Hosted WASM .NET 9 #4

@nobba

Description

@nobba

Hi,
and thank you for your effort and the great library!

We get an error during publish of our Blazor Hosted WASM application after moving to .NET 9.
Everything builds and we can debug the app in VS 2022, but when publishing we get error saying:

"
Endpoints not found for compressed asset: spawndev.blazorjs.webworkers.empty.js.gz
The "ApplyCompressionNegotiation" task failed unexpectedly
at Microsoft.AspNetCore.StaticWebAssets.Tasks.ApplyCompressionNegotiation.Execute()
"
Any idea what might be off?
As a possibly related note, we had to set the StaticWebAssetBasePath in our wrapper to your package, otherwise
ImportShimBlazorWASM complained about a missing base path.

Difficult to provide an example since it is during publish, but will try to provide more info based on what you might need.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomers

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions