# Thirdparty plugin in engine directory fails compilation

**URL:** <https://forums.unrealengine.com/t/thirdparty-plugin-in-engine-directory-fails-compilation/570483>\
**Category:** Plugins\
**Tags:** unreal-engine, UE5-0, Plugins, question\
**Created:** [May 31, 2022, 5:50am UTC](https://forums.unrealengine.com/t/thirdparty-plugin-in-engine-directory-fails-compilation/570483 "2022-05-31T05:50:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cameron\_FMOD](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cameron\_FMOD](https://forums.unrealengine.com/u/Cameron_FMOD)\
**Post date:** [May 31, 2022, 5:50am UTC](https://forums.unrealengine.com/t/thirdparty-plugin-in-engine-directory-fails-compilation/570483/1 "2022-05-31T05:50:12Z")

</div>

Trying to load a project, after adding the ‘FMODStudio’ plugin to the UE5 Engine directory, will produce an error:

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

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/f/c/afccd6da9832523a90bb31db4acf438803adac5d.png)

This appears to have been an [issue in 4.25](https://issues.unrealengine.com/issue/UE-95865), and seems to have been brought back to UE5 in early access UE-109436.

---

<div class="post-metadata">

**Author:** ![Polite\_Muon](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Polite\_Muon](https://forums.unrealengine.com/u/Polite_Muon)\
**Post date:** [June 1, 2022, 9:09pm UTC](https://forums.unrealengine.com/t/thirdparty-plugin-in-engine-directory-fails-compilation/570483/2 "2022-06-01T21:09:48Z")

</div>

Welcome back to the community Colbaltasaur!

This error is quite interesting. There is a very similar thread [here](https://forums.unrealengine.com/t/compilerresultslog-error-expecting-to-find-a-type-to-be-declared-in-a-module-rules-named-advancedsessions/468583). This thread goes over copying the plugin from the Engine directory and placing it in the Plugins folder of your project.

I wish you the best in your development journey and I look forward to your reply if you require additional assistance.

---

<div class="post-metadata">

**Author:** ![Cameron\_FMOD](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cameron\_FMOD](https://forums.unrealengine.com/u/Cameron_FMOD)\
**Post date:** [June 2, 2022, 5:28am UTC](https://forums.unrealengine.com/t/thirdparty-plugin-in-engine-directory-fails-compilation/570483/3 "2022-06-02T05:28:00Z")

</div>

That is indeed a workaround, that we are currently suggesting to users, but it’s not really a solution.

In UE4.25 this was remedied by a section in the UnrealBuildTool being commented out, it also stayed that way up to UE4.27, but now it looks like there was an attempt to fix this for UE5.
