Compilation Strange Problem

Hello. I have run into a strange problem. Everything was working fine yesterday, today I started my unity project and started getting a nullReferenceException. I debugged it and saw that one of my scripts was showing “The associated script cannot be loaded. Please fix any compile errors and assign a valid script”.

According to my knowledge if this happens code should not compile and console should show the error at the specific line of code but none of this happens. There is no error on console and project is compiling and running but shows nullReferenceException where reference of this script is used.

This is totally beyond me that how can this happen? I deleted library folder, reinstalled Unity, reimported everything but still this error remains.

Make sure the script is named exactly the same as the file (ie. LightningBoltScript inside LightningBoltScript.cs). Also make sure it is the only MonoBehaviour in that file.

I have made sure of both of these things. Actually, this is from a package downloaded from Asset Store. I have contacted the developer. Lets see what he has to say.