I did get it working in the end
one of the problems was missing import statements for some of the React components such as
startIcon={<Plus />}