Error was not declared in this scope after new computer (windows 11)

Did you remember to select that board type?

Please post the whole error message.