Fails to package the urpoject after including blueprint function which opens the window dialog

Hi All.
I am working on a product configurator and faces a problem when I write a custom blueprint to call the window dialog. The script which creates the blueprint function is correct(I can compile the script) and I can open window dialog and choose files while playing a product configurator within the engine. But when I try to package the project, it fails to be packaged. I already include “DesktopPlatform” in the Build.cs of the project. Is there any way to resolve the problem? I saw multiples but seem quite confusing to understand( such as copying DesktopPlatform and SlateFIleDialog from Developer/Source Folder to UPlugin and rename them.)

Many thanks for those who can answer my questions! :slightly_smiling_face: