'Issue with GitHub Pages and Blazor

I have two GitHub repositories, both built using Blazor and GitHub pages. The first is https://github.com/xlq902/blazortest, and it works...however, the other one, https://github.com/nlrpg/nlrpg.github.io, is under an organization account. I even first built it under my xlq902 account, when it worked, then transferred ownership to nlrpg.

When I visit the address https://nlrpg.github.io, the following error always occurs:

"SyntaxError: Unexpected token < in JSON at position 0 in blazor.webassembly.js:1

Does anyone know why this occurs? Help would very much be appreciated :)

Thanks!



Solution 1:[1]

I think you have to remove this 3 lines from you GitHub Action workflow to keep the base tag untouched

enter image description here

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Santiago