flutter run -d chrome --web-port=3333
起動したら
Launching lib/main.dart on Chrome in debug mode... Syncing files to device Chrome... 18,176ms (!) Debug service listening on ws://127.0.0.1:63619/ToXsKu5dYro= Warning: Flutter's support for web development is not stable yet and hasn't been thoroughly tested in production environments. For more information see https://flutter.dev/web 🔥 To hot restart changes while running, press "r". To hot restart (and refresh the browser), press "R". For a more detailed help message, press "h". To quit, press "q". FirebaseError: Firebase: No Firebase App '[DEFAULT]' has been created - call Firebase App.initializeApp() (app/no-app). at Object.p [as app] (https://www.gstatic.com/firebasejs/7.5.0/firebase-app.js:1:10100) at Object.app$ [as app] (http://localhost:3333/packages/firebase/src/top_level.dart.lib.js:72:56) at new cloud_firestore_web.FirestoreWeb.new (http://localhost:3333/packages/cloud_firestore_web/src/write_batch_web.dart .lib.js:793:57) at Function.registerWith (http://localhost:3333/packages/cloud_firestore_web/src/write_batch_web.dart .lib.js:738:71) at Object.registerPlugins (http://localhost:3333/packages/admin/generated_plugin_registrant.dart.lib.j s:15:38) at main$ (http://localhost:3333/web_entrypoint.dart.lib.js:15:35) at main$.next (<anonymous>) at runBody (http://localhost:3333/dart_sdk.js:35674:34) at Object._async [as async] (http://localhost:3333/dart_sdk.js:35702:7) at main$ (http://localhost:3333/web_entrypoint.dart.lib.js:14:18) at <anonymous>:1:8 at Object.runMain (http://localhost:3333/dwds/src/injected/client.js:8343:15) at http://localhost:3333/dwds/src/injected/client.js:22335:19 at _wrapJsFunctionForAsync_closure.$protected (http://localhost:3333/dwds/src/injected/client.js:3636:15) at _wrapJsFunctionForAsync_closure.call$2 (http://localhost:3333/dwds/src/injected/client.js:10848:12) at Object._asyncStartSync (http://localhost:3333/dwds/src/injected/client.js:3600:20) at main__closure1.$call$body$main__closure (http://localhost:3333/dwds/src/injected/client.js:22347:16) at main__closure1.call$1 (http://localhost:3333/dwds/src/injected/client.js:22279:19) at StaticClosure._rootRunUnary [as call$2$5] (http://localhost:3333/dwds/src/injected/client.js:3958:16) at _CustomZone.runUnary$2$2 (http://localhost:3333/dwds/src/injected/client.js:12164:39) at _CustomZone.runUnaryGuarded$1$2 (http://localhost:3333/dwds/src/injected/client.js:12092:14) at _ControllerSubscription._sendData$1 (http://localhost:3333/dwds/src/injected/client.js:11642:19) at _DelayedData.perform$1 (http://localhost:3333/dwds/src/injected/client.js:11796:59) at _PendingEvents_schedule_closure.call$0 (http://localhost:3333/dwds/src/injected/client.js:11845:14) at Object._microtaskLoop (http://localhost:3333/dwds/src/injected/client.js:3801:21) at StaticClosure._startMicrotaskLoop (http://localhost:3333/dwds/src/injected/client.js:3807:11) at _AsyncRun__initializeScheduleImmediate_internalCallback.call$1 (http://localhost:3333/dwds/src/injected/client.js:10720:9) at invokeClosure (http://localhost:3333/dwds/src/injected/client.js:1172:26) at MutationObserver.<anonymous> (http://localhost:3333/dwds/src/injected/client.js:1191:18)
「FirebaseError: Firebase: No Firebase App '[DEFAULT]' has been created - call Firebase App.initializeApp() (app/no-app).」のやつ
No Firebase App '[DEFAULT]' has been created の対応 - Qiita
Reactでも出てくるっぽい。
Flutter WebではDartでじゃ無くて
web/index.html
へ書く?