Packaging failed for plugins - unhandeled exception

hello fellow devs , so i have a plugin i made , which builds fine for 5.3, 5.4 and 5.5 was working too for a while

but lately i downloaded the editor debugging symbols , and today i can’t package any plugin even old plugins that were packaging fine in 5.5 are not packaging now , been debuggin this for a while couldn’t find any information

this is the log :

Unhandled exception: ArgumentNullException: Value cannot be null. (Parameter ‘element’)
at System.ArgumentNullException.Throw(String paramName)
at System.Attribute.GetCustomAttributes(MemberInfo element, Type attributeType, Boolean inherit)
at System.Reflection.CustomAttributeExtensions.GetCustomAttributes[T](MemberInfo element)
at UnrealBuildTool.ModuleRules.IsValidForTarget(Type moduleType, ReadOnlyTargetRules targetRules, String& invalidReason) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\Configuration\ModuleRules.cs:line 1680
at UnrealBuildTool.UEBuildTarget.AddAllValidModulesToTarget(ILogger Logger) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\Configuration\UEBuildTarget.cs:line 4266
at UnrealBuildTool.UEBuildTarget.PreBuildSetup(ILogger Logger) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\Configuration\UEBuildTarget.cs:line 3720
at UnrealBuildTool.UEBuildTarget.Create(TargetDescriptor Descriptor, Boolean bSkipRulesCompile, Boolean bForceRulesCompile, Boolean bUsePrecompiled, UnrealIntermediateEnvironment IntermediateEnvironment, ILogger Logger) in D:\build++UE5\Sync\Engine\Saved\CsTools\Engine\Source\Programs\UnrealBuildTool\Configuration\UEBuildTarget.cs:line 1390

this same message happens for all plugins old ones that were working and the new one

thanks in advance

Hello there @NFU_Dev!

Checking with my peers, that looks like a conflict with UBT when trying to read a certain module. These type of issues are usually tied to file corruption, specially considerig you just updaded your debugging symbols.

So, in order to fix this, let’s force a cache clear. First of all, please clear the following folders from your plugins and project directories:

  • Binaries/
  • Intermediate/
  • Saved/

Next, go to your engine install, and to your local app data, and clear the following:

  • %LOCALAPPDATA%\UnrealEngine\Common\DerivedDataCache
  • Engine\Intermediate\

Finally, clear the UBT cache. by deleting the contents of this folder:

  • Engine\Binaries\DotNET\UnrealBuildTool\

Now, we just need to regenerate your build. Locate .uproject file, right click on it, and choose “Generate Visual Studio project files”. After that, re-open your project, and allow it to rebuild everything.

If the issue persists after this step, the other option is tied to the engine itself being in conflict. For that, you can simply locate your install in the Epic launcher, open the dropdown menu, and hit “Verify”. After that, test packaing again.