Arduino MKR1010 connection issue

Hello All,
New to Blynk,
I have been trying to get a Arduino MKR1010 connected. Have tried using the Quickstart template from the console. Also tried a example from the Arduino IDE Blynk examples for a MKR1010.
This is the error message I have

Arduino: 1.8.16 (Mac OS X), Board: “Arduino MKR WiFi 1010”

In file included from /Users/…/Documents/Arduino/libraries/WiFiNINA/src/WiFiStorage.h:23:0,
from /Users/…/Documents/Arduino/libraries/WiFiNINA/src/WiFi.h:38,
from /Users/…/Documents/Arduino/libraries/WiFiNINA/src/WiFiNINA.h:23,
from /var/folders/tf/w63dchpn4tlcgxh4hkdbz0480000gp/T/arduino_modified_sketch_495248/Arduino_MKR1010.ino:38:
/Users/…/Documents/Arduino/libraries/WiFiNINA/src/utility/wifi_drv.h:293:12: error: ‘PinStatus’ does not name a type
static PinStatus digitalRead(uint8_t pin);
^~~~~~~~~
exit status 1
Error compiling for board Arduino MKR WiFi 1010.

This report would have more information with
“Show verbose output during compilation”
option enabled in File → Preferences.

Any help would be great.
Thanks

Got things working. Did a board upgrade under the board manager tab.
At least I think that is all I did.