Hi Michael, welcome to the community!
This error is actually a bit of a bug within Unity at the moment, it isn’t the correct error message. The issue will be that your script file name and class name do not match.
For example;
Example.cs
using UnityEngine;
public class Example : MonoBehaviour
{
// ...
}
AnotherExample.cs
using UnityEngine;
public class AnotherExample : MonoBehaviour
{
// ...
}
Hope this helps