Packaging fails due to missing type. UE 5.3.2 with Cesium 2.8

Hi,
I’m trying to package a project for Windows using Unreal Engine 5.3.2 and Cesium 2.8. Unfortunately, the packaging fails with the following error:

UATHelper: Packaging (Windows): Expecting to find a type to be declared in a module rules named 'CesiumRuntime' in . This type must derive from the 'ModuleRules' type defined by Unreal Build Tool.

I did manage to package the same project in the past with an earlier release of Cesium, so I’m guessing there is a bug in the current release?

Anyway, any help would be much appreciated

Hi @Marlo, welcome to the community!
That’s a strange error, I’m not quite sure what it might mean. Can you walk us through how you’re installing Cesium for Unreal? Is it from the Marketplace? Is it installed as an Engine plugin, or is it embedded in your project? Can you reproduce the problem in the Cesium for Unreal Samples project as well, or only in your own project? We released v2.9.0 yesterday, so you could also try upgrading and see if that helps, though I don’t know of any change that would affect an error like that specifically.

Hi @Kevin_Ring ,
Thanks for your reply! I have Cesium as an Engine plugin. I tried installing it from market place and from GitHub. Same error. I just updated to the latest version (2.9.0 from Marketplace) and I’m still getting the same error. I also tried with one of the samples (12_CesiumGoogleMapsTiles), but no luck

I tried it out with a clean copy of Cesium for Unreal Samples in UE 5.3.2 and Cesium for Unreal v2.9.0 installed from the Unreal Marketplace. After opening the project, I just went to Platforms → Windows and changed the Binary Configure to Shipping. Then I did Platforms → Windows → Package Project. It completed successfully, and I was able to run the built game.

It may help to see your complete log. Perhaps something is going wrong earlier in the process.

Hi @Kevin_Ring,
Thanks for the help! It was indeed a problem with something happening earlier in the build process. Specifically, with the 3D-connexion (space mouse) plugin. I had manually installed it for UE5.3, but I also have the marketplace version for UE5.4 . For some reason, installing the marketplace version for UE5.4 also copied the plugin folder into UE5.3. Therefore, even if everything was working fine in the editor, I was getting a warning for duplicated names related to that plugin. So probably that was messing with the unreal build tool that in turn was unable to define a type for Cesium (the next plugin in line, I guess), hence the error.

I’m now able to package projects.

Thanks again!

1 Like