# Using UActorCompent with a Module

**URL:** <https://forums.unrealengine.com/t/using-uactorcompent-with-a-module/375932>\
**Category:** C++\
**Tags:** modules, compiler-error, unreal-engine, unrealbuildtool, question, CPP\
**Created:** [November 10, 2016, 7:52am UTC](https://forums.unrealengine.com/t/using-uactorcompent-with-a-module/375932 "2016-11-10T07:52:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_d4efcd70](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d4efcd70](https://forums.unrealengine.com/u/anonymous_user_d4efcd70)\
**Post date:** [November 10, 2016, 7:52am UTC](https://forums.unrealengine.com/t/using-uactorcompent-with-a-module/375932/1 "2016-11-10T07:52:55Z")

</div>

I’m trying to use a UActorCompent in module, and keep getting compiler errors.

Error:  
Runtime/Engine/Classes/Engine/EngineBaseTypes.h:387:8: error: explicit specialization of non-template struct ‘TStructOpsTypeTraits’

Messenger.Build.cs:  
using UnrealBuildTool;

```
public class Messenger : ModuleRules
{
	public Messenger(TargetInfo Target)
	{
		PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore"});
        PrivateDependencyModuleNames.AddRange(new string[] {"Core"});
		PrivateIncludePaths.Add("Messenger/Private");
	}
}

```

I can use `UActorComponent` in my main project without issues, and there aren’t any other Dependencies that should require it. What do I have to add to the build to support a `UActorComponent` in a module?
