Weird inheritance error while building

Hi,
I have a weird error probably not caused by my codes and I can not backtrace. Also it seems like the problem is MonoBehaviour renderer. Can someone help me to pinpoint the problem?

Thanks

The first line of the error:

The same field name is serialized multiple times in the class or its parent class. This is not supported: Base(MonoBehaviour) renderer

Suggests to me that there is some script where the variable name “renderer” is used, which may be conflicting with an inherited member named “renderer”, or something to that effect. Do you have any scripts with a variable named “renderer”? If so, maybe try renaming that?

Either that, or a scene/prefab file may be corrupted, which will be harder to fix.

It’s a goofy bug in Unity’s serializer that 99% of the time means you have a variable with the same name in a derivative class (even if it’s private).