I created a Flutter app with mobile support only:
flutter create --platforms=ios,android foo
I also have another Flutter project that I created before web was supported by Flutter, which is why it only contains support for mobile.
Now, I want to run my app on web and macOS, but I receive the following error when trying to use flutter run -d macos:
Exception: No macOS desktop project configured. See https://flutter.dev/desktop#add-desktop-support-to-an-existing-app to learn about adding macOS support to a project.