Packaging error in Unreal engine 5.0.3. Are there any ways to solve this?

Removing the plugin from the engine and adding it to the project does not help.

UATHelper: Packaging (Windows): ERROR: Expecting to find a type to be declared in a module rules named ‘AdvancedSessions’ in UE5Rules, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null. This type must derive from the ‘ModuleRules’ type defined by Unreal Build Tool.
PackagingResults: Error: Expecting to find a type to be declared in a module rules named ‘AdvancedSessions’ in UE5Rules, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null. This type must derive from the ‘ModuleRules’ type defined by Unreal Build Tool.

I made a sample project which compiles & packs no problems.
Why are you adding it to the engine?
Did you get the latest version of the plugin off of github?

Did you

  • create a Plugins folder in your c++ project and copy the AdvancedSessions folder to it
  • compile the project from source
  • enable the plugin
  • pack

As it’s a plugin no need to add anything to your build file

I’m guessing you are using Rider for this??

Look at this post regarding a similar error
https://debugah.com/solved-rider-compile-ue5-project-error-expecting-to-find-a-type-to-be-declared-in-a-module-rules-named-rd-in-ue5rules-26643/

1 Like

Thanks! Your advice helped me in solving the problem

1 Like