Build failed - Expecting to find a type to be declared in a module rules named 'AdvancedSessions' in UE5Rules...

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 am trying to make public networking for my UE5 project, but when I am trying to package it I get an error. I tried to put the plugin in my Project directory and then folder Plugins, but then the editor crashes before the project opens :((

crash with plugin in project directory:

1 Like

Did you ever fix this?

1 Like

With a previous version of the plugin, the editor works fine for me but when packaging, the built game is stopped with a message that says; Fatal Critical.

I fixed it! Just create a “plugins” folder inside your project, and move the plugin there and remove it from your UE5 plugins folder.

1 Like

I have the same “Fatal Error!” error as you, I’ve been trying to fix it for hours and I don’t know why it is happening…

1 Like

We’re the same, I’m thinking about stopping using the plugin or waiting until they fix it.

I fixed my issue, I had a few versions of the “Online Subsytem” plugin enabled, even though you don’t need them all, so I disabled all them except the ones I really needed, and my game worked perfect, and the fatal error went away.

exactly how was it?