Skip to content

Blazor WASM PWA app published to github pages - PWA not working, errors in console, cannot access .json file #46027

@Laftek

Description

@Laftek

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

I published my Blazor WASM app to the github pages. Everything is working in localhost (no errors in console, lottie animation is displayed correctly, PWA can be installed ...) but when its published its not working as expected. I try to find some tutorials but no luck so it seems that I am doing something wrong. Could you please check if its me doing something wrong or there is issue on your side?

Expected Behavior

No response

Steps To Reproduce

  1. Create new Blazor WASM PWA (optional: add lottie animation)
  2. Publish app to github pages

Github repo:
https://github.com/Laftek/BlazorWASMPWAStaticPublish.git
Site:
https://laftek.github.io/BlazorWASMPWAStaticPublish/

Exceptions (if any)

No response

.NET Version

7.0.100

Anything else?

Screenshot_20230111_010506

Metadata

Metadata

Assignees

Labels

Needs: Attention 👋This issue needs the attention of a contributor, typically because the OP has provided an update.area-blazorIncludes: Blazor, Razor Componentsfeature-blazor-wasmThis issue is related to and / or impacts Blazor WebAssemblyfeature-pwaIssues related to building PWAs with Blazorinvestigate

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions