Arduino MKR ZERO blink sketch only works when uploaded from online editor

That again works on both IDE's

My primary trade is mech eng with I.T. as my second string and I am used to getting to the bottom of a problem and resolving it.
I have a feeling I am missing something quite simple and it is annoying me.