Crush when I build Dedicated server

I am building a dedicated server with development server / win64, but there were always the same errors.

I tried 4.21 4.22 but same errors.

The error is

“Package contains EditorOnly data which is not supported by the current build.”

The Unable to load package was WhiteSquareTexture.uasset and kind of .uasset files.

Do u guys have any idea?

in your server target file you have a module that is editor only and this is happening because you duplicated existing editor target file and changed it to server .find

   ExtraModuleNames.AddRange( 
                new string[]
                {" a module ",
                    "an editor module that you have"
                }); 

and change it to

 ExtraModuleNames.AddRange( 
                    new string[]
                    {" a module "
                       
                    });

My project name is Test.

Test.target.cs
TestEditor.target.cs
TestServer.target.cs

ExtraModuleNames.AddRange( new string[] { “Test” } );

All target files are same module “Test”.

I added Test and TestServer once, but it didn’t work.

I just tried to as like same to some youtube videos and websites.

They copy Target file to Server.target.cs and there is nothing change in ExtraModuleNames.

but I’m stuck now.

Any Idea?

Are you using this texture ?WhiteSquareTexture.uasset

Thanks for your fast answer.

Nope. I just made no content in my project.

And I just tried to move that uasset file and tried to compile but it came up other uasset files again.

4.22 version as well, kind of animation uasset file made the same error.

https://allarsblog.com/2015/11/06/support-dedicated-servers/

What I am doing is those.