Did you receive any other compile errors apart from your error here in the Console window? Did you perhaps upgrade spine-unity, then please remove the existing spine-unity directory first and then unpack the new spine-unity unitypackage, so that there are no leftover files from the previous installation.