If unreal 5.4 is not compiling on rider and returning Unhandled exception: System.ArgumentNullException: Value cannot be null. (Parameter 'element')
, try this solution by Sam_Swain.
Hacking around I managed to both a) identify the problem plugins, and b) make the build tool immune to this crash.
- Open C:\Program Files\Epic Games\UE_5.4\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.sln in Visual Studio
- Make Configuration/ModuleRules.cs writable