Issue Declaring Log Category

Ive already looked here:

It seems they had the same problem as me. I get the ‘FLogCategorycustomgame’: is not a class or namespace name error.

game.h

#include "CoreMinimal.h"
#include "Runtime/Core/Public/Logging/LogMacros.h"
#include "Engine.h"
DECLARE_LOG_CATEGORY_EXTERN(customgame, Log, All);

game.cpp

#include "game.h"
#include "Modules/ModuleManager.h"
IMPLEMENT_PRIMARY_GAME_MODULE( FDefaultGameModuleImpl, game, "game" );
DEFINE_LOG_CATEGORY(customgame)

This setup work fine when I was working in 4.17. Did they change the way logging works in 4.25?
Any help with this would be appreciated.