Compile bug (NetTokenExportContext.h)

I was working on a CPP project the other day. Today i opened it and all the progress i made suddenly vanished.

I tried re-building my project and got a error

“syntax error: ‘FNetBitWriter’ should be preceded by ‘;’”

and

missing type specifier - int assumed. Note: C++ does not support default-int

I never once in my life touched this file. So this error is just not making any sense

What is going on? I tried re-generating the project files and nothing works. Is this a bug? I tried switching IDEs and that didnt work either.


#pragma once

#include "Containers/Array.h"
#include "NetToken.h"

class FNetBitWriter;

namespace UE::Net
{
	class FNetTokenStore;
	class FNetTokenStoreState;
}