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

**URL:** <https://forums.unrealengine.com/t/ue5-1-expecting-to-find-a-type-to-be-declared-in-a-module-rules-named/741811>\
**Category:** C++\
**Tags:** unreal-build-tool, unreal-engine, Engine-Source-Code, compile-error, feedback, Plugins, CPP, question\
**Created:** [January 4, 2023, 8:17am UTC](https://forums.unrealengine.com/t/ue5-1-expecting-to-find-a-type-to-be-declared-in-a-module-rules-named/741811 "2023-01-04T08:17:04Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roy\_Wierer.Seda145](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/roy_wierer.seda145/32/906551_2.png) [@Roy\_Wierer.Seda145](https://forums.unrealengine.com/u/Roy_Wierer.Seda145)\
**Post date:** [January 4, 2023, 8:17am UTC](https://forums.unrealengine.com/t/ue5-1-expecting-to-find-a-type-to-be-declared-in-a-module-rules-named/741811/1 "2023-01-04T08:17:04Z")

</div>

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](https://forums.unrealengine.com/t/error-expecting-to-find-a-type-to-be-declared-in-a-module-rules-named-niscore-in-ue5rules/663406)  
> [Error! Expecting to find a type to be declared in a module rules named 'AutoSettings'](https://forums.unrealengine.com/t/error-expecting-to-find-a-type-to-be-declared-in-a-module-rules-named-autosettings/468703)  
> [AdvancedSession ERROR: Expecting to find a type to be declared in a module rules named 'AdvancedSessions'](https://forums.unrealengine.com/t/advancedsession-error-expecting-to-find-a-type-to-be-declared-in-a-module-rules-named-advancedsessions/559503)  
> [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](https://forums.unrealengine.com/t/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/425830/6)

---

<div class="post-metadata">

**Author:** ![David.Sullins](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@David.Sullins](https://forums.unrealengine.com/u/David.Sullins)\
**Post date:** [January 4, 2023, 4:29pm UTC](https://forums.unrealengine.com/t/ue5-1-expecting-to-find-a-type-to-be-declared-in-a-module-rules-named/741811/2 "2023-01-04T16:29:21Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Roy\_Wierer.Seda145](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/roy_wierer.seda145/32/906551_2.png) [@Roy\_Wierer.Seda145](https://forums.unrealengine.com/u/Roy_Wierer.Seda145)\
**Post date:** [January 4, 2023, 4:50pm UTC](https://forums.unrealengine.com/t/ue5-1-expecting-to-find-a-type-to-be-declared-in-a-module-rules-named/741811/3 "2023-01-04T16:50:23Z")

</div>

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)

---

<div class="post-metadata">

**Author:** ![BreakMaker](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/breakmaker/32/971651_2.png) [@BreakMaker](https://forums.unrealengine.com/u/BreakMaker)\
**Post date:** [July 31, 2023, 2:46pm UTC](https://forums.unrealengine.com/t/ue5-1-expecting-to-find-a-type-to-be-declared-in-a-module-rules-named/741811/4 "2023-07-31T14:46:07Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Nooberling](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nooberling/32/722605_2.png) [@Nooberling](https://forums.unrealengine.com/u/Nooberling)\
**Post date:** [November 8, 2023, 2:22pm UTC](https://forums.unrealengine.com/t/ue5-1-expecting-to-find-a-type-to-be-declared-in-a-module-rules-named/741811/5 "2023-11-08T14:22:16Z")

</div>

I’m getting this error in UE 5.3.2

---

<div class="post-metadata">

**Author:** ![Anthony\_Attwood](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anthony\_Attwood](https://forums.unrealengine.com/u/Anthony_Attwood)\
**Post date:** [February 1, 2024, 6:08pm UTC](https://forums.unrealengine.com/t/ue5-1-expecting-to-find-a-type-to-be-declared-in-a-module-rules-named/741811/6 "2024-02-01T18:08:30Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![BreakMaker](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/breakmaker/32/971651_2.png) [@BreakMaker](https://forums.unrealengine.com/u/BreakMaker)\
**Post date:** [February 9, 2024, 8:51pm UTC](https://forums.unrealengine.com/t/ue5-1-expecting-to-find-a-type-to-be-declared-in-a-module-rules-named/741811/7 "2024-02-09T20:51:23Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![UnrealPaul](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/unrealpaul/32/1220997_2.png) [@UnrealPaul](https://forums.unrealengine.com/u/UnrealPaul)\
**Post date:** [March 23, 2024, 9:38pm UTC](https://forums.unrealengine.com/t/ue5-1-expecting-to-find-a-type-to-be-declared-in-a-module-rules-named/741811/8 "2024-03-23T21:38:36Z")

</div>

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:

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

```

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

---

<div class="post-metadata">

**Author:** ![SoSeriousMan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/soseriousman/32/590500_2.png) [@SoSeriousMan](https://forums.unrealengine.com/u/SoSeriousMan)\
**Post date:** [January 21, 2025, 10:59pm UTC](https://forums.unrealengine.com/t/ue5-1-expecting-to-find-a-type-to-be-declared-in-a-module-rules-named/741811/9 "2025-01-21T22:59:43Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Skyboy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Skyboy](https://forums.unrealengine.com/u/Skyboy)\
**Post date:** [March 5, 2025, 4:11pm UTC](https://forums.unrealengine.com/t/ue5-1-expecting-to-find-a-type-to-be-declared-in-a-module-rules-named/741811/10 "2025-03-05T16:11:36Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Pur3Ven0m](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Pur3Ven0m](https://forums.unrealengine.com/u/Pur3Ven0m)\
**Post date:** [March 28, 2025, 3:47pm UTC](https://forums.unrealengine.com/t/ue5-1-expecting-to-find-a-type-to-be-declared-in-a-module-rules-named/741811/11 "2025-03-28T15:47:48Z")

</div>

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+?

---

<div class="post-metadata">

**Author:** ![Lionidos](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lionidos](https://forums.unrealengine.com/u/Lionidos)\
**Post date:** [March 29, 2025, 1:11pm UTC](https://forums.unrealengine.com/t/ue5-1-expecting-to-find-a-type-to-be-declared-in-a-module-rules-named/741811/12 "2025-03-29T13:11:09Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Jonasz787](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jonasz787](https://forums.unrealengine.com/u/Jonasz787)\
**Post date:** [April 11, 2025, 6:56pm UTC](https://forums.unrealengine.com/t/ue5-1-expecting-to-find-a-type-to-be-declared-in-a-module-rules-named/741811/13 "2025-04-11T18:56:47Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ttpuffer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ttpuffer](https://forums.unrealengine.com/u/ttpuffer)\
**Post date:** [April 17, 2025, 1:16pm UTC](https://forums.unrealengine.com/t/ue5-1-expecting-to-find-a-type-to-be-declared-in-a-module-rules-named/741811/14 "2025-04-17T13:16:15Z")

</div>

Thank you, this worked for me and saved me 30 minutes

---

<div class="post-metadata">

**Author:** ![John\_Best\_ECS](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@John\_Best\_ECS](https://forums.unrealengine.com/u/John_Best_ECS)\
**Post date:** [July 16, 2025, 1:13pm UTC](https://forums.unrealengine.com/t/ue5-1-expecting-to-find-a-type-to-be-declared-in-a-module-rules-named/741811/15 "2025-07-16T13:13:14Z")

</div>

Thanks! This same solution worked for me when I updated Visual Studio Tools to v2.7 in my UE 5.3.2 install. My project errored on build right after with this same error about VS Tools. Moving the VisualStudioTools folder from /Engine/Plugins to /Engine/Plugins/Marketplace instantly fixed it.

---

<div class="post-metadata">

**Author:** ![Guardbrawl](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Guardbrawl](https://forums.unrealengine.com/u/Guardbrawl)\
**Post date:** [February 24, 2026, 7:19pm UTC](https://forums.unrealengine.com/t/ue5-1-expecting-to-find-a-type-to-be-declared-in-a-module-rules-named/741811/16 "2026-02-24T19:19:02Z")

</div>

Thanks for the tip! That worked for me, I was trying to make a plugin for UE 5.3 and later, and this issue still came up, when I tried to put my plugin in the engine’s plugin folder alongside the regular engine plugins. There wasn’t a marketplace folder for me, but as soon as I made my own “Marketplace” folder inside the Engine/Plugins folder, and put my plugin there, the project using my plugin compiled just fine.

---

<div class="post-metadata">

**Author:** ![jh\_hm](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jh\_hm](https://forums.unrealengine.com/u/jh_hm)\
**Post date:** [October 29, 2026, 6:24pm UTC](https://forums.unrealengine.com/t/ue5-1-expecting-to-find-a-type-to-be-declared-in-a-module-rules-named/741811/17 "2026-10-29T18:24:57Z")

</div>

I just want to add that this solution (moving the problematic plugin to Plugins/Marketplace) worked even when Fab, from Epic, was the offending plugin. I still don’t know why that plugin suddenly became a problem: we don’t build the engine and we hadn’t updated for a while.
