I accidentally deleted @main from
@main struct MyApp: App { var body: some Scene { WindowGroup { ContentView() } } }