I can't add the script to fix my broken script, because my script is broken

Basically I referenced something that doesn’t exist yet in a C# class. I’m now trying to add the script that creates those references to the same prefab, but because I have an obvious compile error it won’t let me add the script until I fix it.

“Please fix compile errors before creating new script components”

If there’s no work around for this I’m going to be a little upset.

It just started working. Did unity read my new script and create associations without me adding the scripts to the same object? I’m really glad it’s working now, but I’m still confused as hell.