# UHT Couldn't Find Parent Type of a Module Declared in Build.cs

**URL:** <https://forums.unrealengine.com/t/uht-couldnt-find-parent-type-of-a-module-declared-in-build-cs/405716>\
**Category:** C++\
**Tags:** UE4-17, modules, uht, unreal-engine, question, CPP\
**Created:** [September 29, 2017, 2:40am UTC](https://forums.unrealengine.com/t/uht-couldnt-find-parent-type-of-a-module-declared-in-build-cs/405716 "2017-09-29T02:40:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![elisamuelps](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@elisamuelps](https://forums.unrealengine.com/u/elisamuelps)\
**Post date:** [September 29, 2017, 2:40am UTC](https://forums.unrealengine.com/t/uht-couldnt-find-parent-type-of-a-module-declared-in-build-cs/405716/1 "2017-09-29T02:40:14Z")

</div>

Hello! I’m creating an Scene Component with a custom Component Visualizer but I’m having problems trying to add this module to my plugin, I have added already “ComponentVisualizers” on my private dependences Module Names and UnrealEd, but I’m still getting this error from UHT when I’m compiling.

1\>EXEC : error : Couldn’t find parent type for ‘ActorLauncherVisualizer’ named ‘FComponentVisualizer’ in current module or any other module parsed so far.

here’s my Actor Launcher Visualizer.h file:

```
#pragma once

#include "CoreMinimal.h"
#include "ComponentVisualizer.h"
#include "ActorLauncherComponent.h"
#include "ActorLauncherVisualizer.generated.h"

UCLASS()
class MYGAME_API FActorLauncherVisualizer : public FComponentVisualizer
{
	GENERATED_BODY()

public:

	virtual void DrawVisualization(const UActorComponent* Component, const FSceneView* View, FPrimitiveDrawInterface* PDI) override;

	UActorLauncherComponent* GetEditedTargetingComponent() const;

private:

	/**Index of target in selected component*/
	int32 CurrentlySelectedTarget;
};

```

and Here’s my Module build.cs Private Dependency Modules

```
    		PrivateDependencyModuleNames.AddRange(
    			new string[]
    			{
                    "Projects",
    				"InputCore",
    				"UnrealEd",
    				"LevelEditor",
    				"CoreUObject",
    				"Engine",
                    "UnrealEd",
    				"Slate",
                    "PropertyEditor",
                    "SlateCore",
                    "ComponentVisualizers",
    				// ... add private dependencies that you statically link with here ...	
    			}
    			);

```

Is this a Bug or I have done something wrong with my module? if so, can anyone help me to shed light on this? Thanks!

---

<div class="post-metadata">

**Author:** ![Cobryis](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Cobryis](https://forums.unrealengine.com/u/Cobryis)\
**Post date:** [February 8, 2019, 7:50pm UTC](https://forums.unrealengine.com/t/uht-couldnt-find-parent-type-of-a-module-declared-in-build-cs/405716/2 "2019-02-08T19:50:10Z")

</div>

You shouldn’t have used UCLASS and GENERATED body on an FClass (non UObject derived class).
