Arduino not compiling (SOLVED)

Hi, I’m programming an Arduino Nano every in platformIO. It has been working like a charm up until today, where I can’t compile and run the code for the arduino anymore. Does anyone know how I can fix this error?
The arduino board is connected to a pc which I have ssh-ed into. please see attached image for error:
Screenshot 2022-03-20 at 14.30.05

SOLVED: had to write
framework = arduino
in the PlatformIO config file.

See Error : showing up on every project - #2 by maxgerhardt