-
Notifications
You must be signed in to change notification settings - Fork 61
Description
Tip
A workaround was found by @ManishKiranagi that can be used in the interim:
Seems to be an issue with latest version of firebase tools
We are using previous version (13.30.0) now and it works
npm install -g [email protected]
Is there an existing issue for this?
- I have searched the existing issues.
CLI Version
1.0.1
Firebase Tools version
13.31.0
Flutter Doctor Output
[✓] Flutter (Channel stable, 3.27.4, on macOS 15.3 24D60 darwin-arm64, locale en-US)
• Flutter version 3.27.4 on channel stable at /Users/alden/development/flutter
• Upstream repository https://github.com/flutter/flutter
• Framework revision d8a9f9a52e (12 days ago), 2025-01-31 16:07:18 -0500
• Engine revision 82bd5b7209
• Dart version 3.6.2
• DevTools version 2.40.3
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
• Android SDK at /Users/alden/Library/Android/sdk
• Platform android-35, build-tools 35.0.0
• Java binary at: /Library/Java/JavaVirtualMachines/jdk-17.jdk/Contents/Home/bin/java
• Java version Java(TM) SE Runtime Environment (build 17.0.12+8-LTS-286)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 16.2)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 16C5032a
• CocoaPods version 1.16.2
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2024.2)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 21.0.4+-12422083-b607.1)
[✓] VS Code (version 1.97.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.104.0
[✓] Connected device (4 available)
• Alden’s iPad (mobile) • 00008103-000949C90A88A01E • ios • iOS 18.3 22D63
• macOS (desktop) • macos • darwin-arm64 • macOS 15.3 24D60 darwin-arm64
• Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin • macOS 15.3 24D60 darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 133.0.6943.54
[✓] Network resources
• All expected network resources are available.
• No issues found!
Description
The CLI throws an error if I run the command:
dart pub global run flutterfire_cli:flutterfire configure --yes --platforms android,ios,web --project hylist-dev-4 --android-package-name com.knoban.hylist --ios-bundle-id com.knoban.hylist --web-app-id 1:XXX:web:072855a5f24c99fe661eca --macos-bundle-id com.knoban.hylist --windows-app-id com.knoban.hylist
The error produced is:
25l⠋ Fetching available Firebase projects...
i Found 1 Firebase projects. Selecting project hylist-dev-4.
25hi Selected platforms: android,ios,web
25l⠋ Fetching registered android Firebase apps for project hylist-dev-4
i Firebase ios app com.knoban.hylist registered.
25h25l⠋ Fetching registered web Firebase apps for project hylist-dev-4
⠙ Fetching registered web Firebase apps for project hylist-dev-4
i Firebase web app 1:XXX:web:072855a5f24c99fe661eca registered.
type 'Null' is not a subtype of type 'String' in type cast
25h
Error: Process completed with exit code 1.
Steps to reproduce
Run the command (or similar):
dart pub global run flutterfire_cli:flutterfire configure --yes --platforms android,ios,web --project hylist-dev-4 --android-package-name com.knoban.hylist --ios-bundle-id com.knoban.hylist --web-app-id 1:XXX:web:072855a5f24c99fe661eca --macos-bundle-id com.knoban.hylist --windows-app-id com.knoban.hylist
Expected behavior
Instead of exiting with an error:
type 'Null' is not a subtype of type 'String' in type cast
25h
Error: Process completed with exit code 1.
I expect it to succeed with:
Firebase configuration file lib/firebase_options.dart generated successfully with the following Firebase apps:
Platform Firebase App Id
web 1:XXX:web:072855a5f24c99fe661eca
android 1:XXX:android:b9d3c9d71d3ab9b2661eca
ios 1:XXX:ios:723151eb48970ac8661eca
Learn more about using this file and next steps from the documentation:
> https://firebase.google.com/docs/flutter/setup
Screenshots
No response
Additional context and comments
I have redacted the web id with an XXX. Probably overkill, but the full version is a valid web id.
This error began occurring in my GitHub Actions runner today with no change to the workflow file, any dependencies, or changes to the Firebase project. The workflow is always set up to use latest Firebase tools and v1.0.1 FlutterFire CLI. It was working just 24h ago.