Make sure you have TextMeshPro installed from the Package Manager.