Ok so I did amend this to so it forced webpack to be 4.1.1 and unfortunately I am still getting the same error.