You were correct, it was a problem with my setup. I have cleaned up my workspace and built with 2.2.9 and the error is no longer appearing. Thanks for your help and apologies for not correctly setting up 2.2.9