System cannot be constructed as it does not inherit from ComponentSystemBase

Hi, getting this error on a system. I can delete all of the code to make it basically empty but it doesn’t prevent the error. Is this codegen related? The system seems to be running fine in play mode.

[Worker0] ArgumentException: ‘XXXSystem’ cannot be constructed as it does not inherit from ComponentSystemBase
Unity.Entities.TypeManager.ConstructSystem (System.Type systemType) (at Library/PackageCache/com.unity.entities@1.3.8/Unity.Entities/Types/TypeManagerSystems.cs:701)

This may be caused by corrupt cached files. Could you try deleting the project’s Library folder and reopening the project?

If the issue persists, please report this bug from within the Unity Editor by selecting Help → Report a Bug…

1 Like

Deleting the library folder didn’t work. I’ll try to repro it in an empty project.