.NET MAUI

How to fix your MAUI Blazor app crashing on startup with “Failed to compare two elements in the array.” ?

This article explains how to fix your Blazor Hybrid MAUI application (built with Blazor Webassembly, using MAUI to build & publish for multiple different platforms like Windows, Android and iOS at once) not starting up, but throwing an unexpected error instead, an error message being somewhat along the lines of…Continue reading How to fix your MAUI Blazor app crashing on startup with “Failed to compare two elements in the array.” ?

.NET MAUI

How to solve “System.TypeInitializationException: ‘The type initializer for ‘WinRT.ActivationFactory`1’ threw an exception.'” in the MAUI application?

… or “How to bang your head on a wall for hours on end when developing a MAUI application?” 😂 This article explains how to fix a surprising error you might get when trying to run a MAUI app in Windows. For me, it was thrown when I was simply…Continue reading How to solve “System.TypeInitializationException: ‘The type initializer for ‘WinRT.ActivationFactory`1’ threw an exception.’” in the MAUI application?

Visual Studio logo

How to fix Visual Studio throwing a “This syntax requires an imported helper named ‘__spreadArray’ which does not exist in ‘tslib’. Consider upgrading your version of ‘tslib’.

This one is something that I keep running into. Visual Studio just throws an error for a missing helper __spreadArray in a library that you didn’t even know you had installed, and you’re not sure if it should – or even can – be updated. I guess Visual Studio just…Continue reading How to fix Visual Studio throwing a “This syntax requires an imported helper named ‘__spreadArray’ which does not exist in ‘tslib’. Consider upgrading your version of ‘tslib’.