Type "ResolvedChunk" and "TypeHandle" don't exist in generated code

I get this when trying to use an Aspect in a System that I’m working on at the moment:

Temp\GeneratedCode\CombatSystem\StatRecalculationSystem__System_1843673514.g.cs(70,75): error CS0426: The type name 'ResolvedChunk' does not exist in the type 'CreatureStats'
Temp\GeneratedCode\CombatSystem\StatRecalculationSystem__System_1843673514.g.cs(77,68): error CS0426: The type name 'TypeHandle' does not exist in the type 'CreatureStats'

CreatureStats looks like this:

    public partial class CreatureStats : IAspect
    {
        public readonly Entity entity;

        public readonly RefRW<BuffStatsComp> buffsRw;

        public readonly RefRW<MergeStatsComp> mergesRw;

        public readonly RefRW<StatsComp> statsRw;

        public readonly RefRW<GenesComp> genesRw;

        public readonly RefRW<CreatureComp> creature;

        public readonly RefRW<EnergyComp> energy;

        public readonly RefRW<HealthComp> health;
    }

I already tried reimporting all assets, recreating the project files, removing the partial in the aspect…
I honestly don’t know what those two types are supposed to do, and I’m at my end of my wits.

Aspects are structs.
Always thoroughly read docs before attempting something.

I tried it as both, didn’t work earlier. After changing it back again and re-importing everything and recreating the project files AGAIN, as well as doing some other stuff, it finally worked.