Unity says to fix compiler errors but there aren't any in the code

I’m making a visual novel and after adding a new character I can’t enter play mode. I checked visual studio but it say there aren’t any errors in the code.

Have you saved the code? And what does it actually look like?

Please don’t use the 2D forum for this.

I’ll move your post to the Scripting forum.

Why are we taking pictures of screens with our phones in 2023?

Post your code in code tags. Post the error too.

Yeah

Unity is reporting it. You need to look at Unity’s console window.

Make sure your log console selector buttons are enabled. See this graphic:

It is possible for your editor to not report errors. For example, my VSCode only shows errors for open files. Files that aren’t open will not show up.

Opening the file that Unity is complaining about resolves that for me!

This. Errors you need to look at are reported in the Unity Console Window. Unity is the authority here, not your external code editor.