C++ source can't be found (4.23.0)

I’m trying to build a project in 4.23.0 with VS19. I have tried to build a number of different projects where the only source code was added in via plugins. Those all compiled just fine. However, I loaded up a new project and created just a simple actor in C++ (not part of a plugin)

// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "CapsuleComponent.h"
#include "SoundCue.h"
#include "DemoNote.generated.h"

UCLASS()
class REDACTED_API ADemoNote : public AActor
{
	GENERATED_BODY()

public:

	//Collision Root
	UPROPERTY(VisibleAnywhere, BlueprintReadOnly)
	UCapsuleComponent* CapsuleComponent;

	//Mesh
	UPROPERTY(VisibleAnywhere, BlueprintReadOnly)
	UStaticMeshComponent* MeshComponent;

	//Message
	UPROPERTY(EditAnywhere, BlueprintReadWrite)
	FString Message;

	//PingSound
	UPROPERTY(EditDefaultsOnly, BlueprintReadWrite)
	USoundCue* PingSound;

	//METADATA

	//PlacerTransform
	UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Metadata")
	FTransform PlacerTransform;

	//
	
public:	
	// Sets default values for this actor's properties
	ADemoNote();

protected:
	// Called when the game starts or when spawned
	virtual void BeginPlay() override;

public:	
	// Called every frame
	virtual void Tick(float DeltaTime) override;

};

When I try to compile this I get this error: (7): fatal error C1083: Cannot open include file: ‘CapsuleComponent.h’: No such file or directory

What gives? Why does the same code compile just fine if it’s part of a plugin but not if it’s part of the base project?

Turns out there was an error in my install of unreal. So I just tried reinstalling and everything worked just fine. Hope this helps anyone else with the same issue