I've started getting this error from my Blazor WebAssembly app:
"Cannot read property '_blazorFilesById' of null error" with Blazor app
I'm assuming that's related to the InputFile component I'm using, which has been working fine.
I've tried restarting VS, clean & rebuilding, restarting IIS and killing Chrome all to no avail. What could be causing this?
This turns out to be because I'd added conditional code to hide the
InputFilecomponent on the page. Doing that will cause the error as explained in this post on GitHub by BtbN: