Azure App Service, dotnet 9 - FluentDesignTheme Component, Cannot read properties of undefined (reading 'clearLocalStorage') #33403
-
Have a basic FluentUI Web App that we host in Azure App Service (linux runtime). Everything works fine when hosting/using DotNet 8 runtime. I upgraded the App to Dotnet 9 - runs fine on my dev pc (Windows, VS 2022, Aspire project). But when I publish to Azure App Service, that has dotnet 9 runtime, we just get a blank page for the app and the app service log stream shows the following:
Switch back to dotnet 8, it all works ok. No idea why Azure hosting would be different. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I've searched the Fluent repo for "clearLocalStorage" (case-insensitively) and got no results so the offending code doesn't seem to belong to Fluent itself. From your stack trace I'd start looking here, which seems to be in Blazor: |
Beta Was this translation helpful? Give feedback.
Thanks for checking that!
I did figure it out in the end - was publishing using a github workflow, then I tried pushing via a direct publish from Visual Studio, that worked perfectly.
Not sure what the issue was with my github workflow script, but I ended up recreating it from a template and that works as well now.
nb. The Server timeout/reconnect issues are much improved on dotnet 9, seems to take much longer (hours) to lose connection and automatically reconnects seamlessly when you switch back too the browser.