You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If accidentally running the use command with an invalid project id, like fxfirebase use . then the CLI gets stuck with the error "Error: Invalid project id: .." even if I try to run the command firebase use --clear. I have to specify some valid project id with --project= for even getting "--clear" to work.
$ firebase use .
Now using project .
$ firebase use --clear
Error: Invalid project id: ..
[REQUIRED] Expected behavior
firebase use --clear should not fail even if an invalid project id was (accidentally) specified previously with firebase use
Even better, firebase use should (maybe?) reject invalid project ids before making the id persistent. All commands seem to fail (even the ones that should alleviate this problem) if the project id is invalid.
[REQUIRED] Actual behavior
$ firebase use .
Now using project .
$ firebase --debug use --clear
Error: Invalid project id: ..
The text was updated successfully, but these errors were encountered:
I've made a PR to prevent this in the future (I'm not 100% happy with the fix, but it'll fix it).
To fix your system, open the file ~/.config/configstore/firebase-tools.json with your favorite editor. Look for the activeProjects key, then find the file path that has the invalid project identifier as the value in that collection. Remove it (making sure it remains valid JSON - check the ending commas) and that should remove the issue.
I've made a PR to prevent this in the future (I'm not 100% happy with the fix, but it'll fix it).
To fix your system, open the file ~/.config/configstore/firebase-tools.json with your favorite editor. Look for the activeProjects key, then find the file path that has the invalid project identifier as the value in that collection. Remove it (making sure it remains valid JSON - check the ending commas) and that should remove the issue.
Same problem.
I don't understand how to access the file ~/.config/configstore/firebase-tools.json
What does the first character represents ?
I tried changing projet name, changing in angular.json, restarting everything...no luck.
[REQUIRED] Environment info
firebase-tools:
8.2.0
Platform:
MacOS 10.15.4
zsh 5.7.1 (x86_64-apple-darwin19.0)
[REQUIRED] Test case
(fails on any project)
[REQUIRED] Steps to reproduce
If accidentally running the
use
command with an invalid project id, like fxfirebase use .
then the CLI gets stuck with the error "Error: Invalid project id: .." even if I try to run the commandfirebase use --clear
. I have to specify some valid project id with--project=
for even getting "--clear" to work.[REQUIRED] Expected behavior
firebase use --clear
should not fail even if an invalid project id was (accidentally) specified previously withfirebase use
Even better,
firebase use
should (maybe?) reject invalid project ids before making the id persistent. All commands seem to fail (even the ones that should alleviate this problem) if the project id is invalid.[REQUIRED] Actual behavior
The text was updated successfully, but these errors were encountered: