jacobgrillo was there any error in the composer output to the update commands?
If there were no errors, you can try running composer dump-autoload
to re-create the files that tell Flarum where to load classes from.
If that doesn't help, can you check if the file exists at vendor/flarum/flags/src/AddCanFlagAttribute.php
?