I had this error and was able to fix it by closing the editor, opening the asset and compiling again.