Checkers-Draughts Game: A Kludge to fix an error
When running the Checkers/Draughts Blazor Server app, you may occasionally see Blazor’s built-in error banner at the bottom of the page:
“An unhandled error has occurred. Reload 🗙”
The issue
This banner typically appears when a Blazor Server circuit encounters an unhandled exception or disconnect/reconnect failure.
It’s useful during development, but it can be disruptive for users if it appears repeatedly.
The kludge (CSS hide)
As a UI-only workaround, you can hide the banner using CSS.
In the app, update wwwroot/app.css:
#blazor-error-ui {
display: none !important;
}
Important note
This does not fix the underlying problem (server exception/circuit instability). It only hides the visual banner while you continue to investigate and address the root cause.
| Topic | Subtopic | |
| This Category Links | ||
| Category: | Artificial Intelligence Index: | Artificial Intelligence |
| < Prev: | Checkers-Draughts Game | Implementing an automated AI Opponent |