This seemed to be caused by some additional libraries and code that had not been setup correctly. Removing this fixed the issue