I managed to fix a few of my assets with this issue by
- Marking the variable with the error as editor only compiling.
- Unticking editor only and compiling agian.
3.Packaging/Cooking Content agian.
I managed to fix a few of my assets with this issue by