UE5.1 Expecting to find a type to be declared in a module rules named '......'

Compilation error:
Expecting to find a type to be declared in a module rules named ‘DlssUtility’ in UE5Rules, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null. This type must derive from the ‘ModuleRules’ type defined by Unreal Build Tool.

Reproduce:

  1. Upgrade from Unreal Engine 4.27 to 5.1.
  2. Install NVIDIA DLSS to the engine plugins folder.

I expect someone will tell me to move the plugin to the project folder and try again. That is not a fix.

Related:

ERROR: Expecting to find a type to be declared in a module rules named 'NISCore' in UE5Rules
Error! Expecting to find a type to be declared in a module rules named 'AutoSettings'
AdvancedSession ERROR: Expecting to find a type to be declared in a module rules named 'AdvancedSessions'
ERROR: Expecting to find a type to be declared in a module rules named 'UnrealED' in UE4Rules, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null. - #6 by kartonfalter

8 Likes

Try copying the plugins to the Engine\Plugins\Marketplace folder. It’s a new requirement since 5.x that marketplace plugins need to go here if you’re installing them with the engine.

27 Likes

Thank you! It works. Even though the plugin is not managed by the marketplace. Hope this helps more people, googling the issue does not point to Epic’s documentation on this (if any exists)

1 Like

I have had the same issue with two plugins today that I installed through the launcher, and hence, obviously the plugins are installed under Engine/Plugins/Marketplace. I get the error nevertheless. Any similar experiences? UE5.1.1

1 Like

I’m getting this error in UE 5.3.2

1 Like

I’m getting this error also but with the houdini niagara plugin

Lol I came across this issue again today, and I cannot remember how I solved it in July 23 :smiley:

I too had the same problem when I was testing my plugin that I made.

The way to fix it was to move the plugin into the project (ue 5.3.2). It should look roughly like this:

YourProject/
├── Plugins/
│   └── YourPlugin/
│       ├── Binaries/
│       └── ...
├── ...

After moving the plugin, the error disappeared and everything worked correctly.

2 Likes

That’s not only a solution for 3rd party plugins, but good practise as well. Plugins after build should be commited to repo with rest of the files. It’s more stable like that.

Can anyone explain this in further detail or just dumb it down for me

Im getting this error

Expecting to find a type to be declared in a module rules named ‘VisualStudioTools’ in ‘UE5Rules, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null’. This type must derive from the ‘ModuleRules’ type defined by UnrealBuildTool.

1 Like

So we should be moving all marketplace plugins to our project folder, then if we need that plugin for another project download from marketplace and just move it to project again each time? Is what i should be getting from this, am i right? especially with 5.0+?

I am having the exact same issue and I do not understand what plugins I need to move where. I went into the UE 5.5/engine/plugins folder and there is no marketplace folder in here. Do i need to create one? It looks like UE doesnt recognize visual studio tools but arnt they soppused to be integrated in order to help visual studio run live coding in unreal? can someone please provide more details.

I’ve just spent a good hour trying to figure this out.
Solution for me was: Remove “VisualStudioTools” plugin from my .uproject file.

1 Like