Error "UnityEditor.BuildPlayerWindow+BuildMethodException: 'x' errors" preventing project compiling

This has just recently happened after updating unity to version 2017.2.0f3 and i’ve havent actually been able to build projects anymore. What was intresting was when i removed a graphics API from the player settings the error count decreased. I have no idea why this is happening

I’ve actually found the solution and fixed the problem but i cant quite remember how i did it. But what i did was i just removed textmeshpro and other asset store addons that havent been updated yet, and just add them back once they’ve been updated by the developer!