# 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:** 1\
**Showing post:** 13

<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.

---

_[View the full topic](https://forums.unrealengine.com/t/ue5-1-expecting-to-find-a-type-to-be-declared-in-a-module-rules-named/741811)._
