0

When I am triying to add environment variable to firebase, I have the following error when doing firebase deploy --only functions

Error: Cannot understand what targets to deploy. Check that you specified valid targets if you used the --only or --except flag. Otherwise, check your firebase.json to ensure that your project is initialized for the desired features

I can't understand why i have this error (I previously managed to add environment variable on the same project)

Note : I have also tried add environment variable to a newly created project so my firebase.json is not empty

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807
V. Lachand
  • 31
  • 4

1 Answers1

0

Check that where you are running the command firebase deploy --only functions in command prompt is under the same directory as your functions folder.

Sushant Somani
  • 1,450
  • 3
  • 13
  • 31