Looks like you already have the 2017 version of TextMeshPro in the project. you should remove that and only use the 2018 version of TextMeshPro from the Package Manager.