I can't seem too be able to generate packages for any of my projects in UE4.27 and 4.26

I’ve been trying to package my project with these errors appearing every-time I attempt it:

UATHelper: Packaging (Windows (64-bit)): ERROR: Could not find definition for module ‘DerivedDataCache’, (referenced via Target → Launch.Build.cs → SessionServices.Build.cs → Core.Build.cs)

PackagingResults: Error: Unknown Error

and I’ve deleted the DDC folder and specifying new locations for it with no progress