Can't Package Project in Unreal Engine 5.4.4

Running AutomationTool…

Using bundled DotNet SDK version: 6.0.302

Starting AutomationTool…

Parsing command line: -ScriptsForProject=“C:/Users/marqu/Desktop/TorroGames/Unreal Engine 5/Cassian/Planet_Y/Planet_Y.uproject” BuildCookRun -project=“C:/Users/marqu/Desktop/TorroGames/Unreal Engine 5/Cassian/Planet_Y/Planet_Y.uproject” -noP4 -clientconfig=Shipping -serverconfig=Shipping -nocompile -nocompileeditor -installed -unrealexe=“C:\Program Files\Epic Games\UE_5.4\Engine\Binaries\Win64\UnrealEditor-Cmd.exe” -utf8output -platform=Win64 -build -cook -map=ShortburnBlockout+L_MainMenu -CookCultures=en -unversionedcookedcontent -pak -compressed -createreleaseversion=1.0 -stage -package -cmdline=" -Messaging" -addcmdline="-SessionId=650FAEF74E4DB3C511D07B990FECF305 -SessionOwner=‘marqu’ -SessionName=‘New Profile 1’ "

Initializing script modules…

Total script module initialization time: 0.44 s.

Using C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\MSBuild.exe

Executing commands…

Setting up ProjectParams for C:\Users\marqu\Desktop\TorroGames\Unreal Engine 5\Cassian\Planet_Y\Planet_Y.uproject

********** BUILD COMMAND STARTED **********

Running: C:\Program Files\Epic Games\UE_5.4\Engine\Binaries\ThirdParty\DotNet\6.0.302\windows\dotnet.exe “C:\Program Files\Epic Games\UE_5.4\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll” Planet_Y Win64 Shipping -Project=“C:\Users\marqu\Desktop\TorroGames\Unreal Engine 5\Cassian\Planet_Y\Planet_Y.uproject” -Manifest=“C:\Users\marqu\Desktop\TorroGames\Unreal Engine 5\Cassian\Planet_Y\Intermediate\Build\Manifest.xml” -remoteini=“C:\Users\marqu\Desktop\TorroGames\Unreal Engine 5\Cassian\Planet_Y” -skipdeploy -log=“C:\Users\marqu\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_5.4\UBA-Planet_Y-Win64-Shipping.txt”

Log file: C:\Users\marqu\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_5.4\UBA-Planet_Y-Win64-Shipping.txt

Creating makefile for Planet_Y (no existing makefile)

Total execution time: 2.09 seconds

Unable to instantiate module ‘UnrealEd’: Unable to instantiate UnrealEd module for non-editor targets.

(referenced via Target → Planet_Y.Build.cs → UMGEditor.Build.cs → SequencerCore.Build.cs → CurveEditor.Build.cs → PropertyEditor.Build.cs → EditorConfig.Build.cs)

Took 2.24s to run dotnet.exe, ExitCode=8

UnrealBuildTool failed. See log for more details. (C:\Users\marqu\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_5.4\UBA-Planet_Y-Win64-Shipping.txt)

AutomationTool executed for 0h 0m 5s

AutomationTool exiting with ExitCode=8 (8)

BUILD FAILED

Can someone help me with the issue that I have here.

I want to package the project but for some reason I cant

Go to your project folder and open the file .uproject with Notepad

Remove any unused module like UMGEditor (if you are not using it)