Firebase Project Error TypeError: targetNames.join is not a function

Hi I am following this tutorial: https://codelabs.developers.google.com/codelabs/cloud-firebase-chat/#2 and when I want to "firebase deploy" I get this error:

TypeError: targetNames.join is not a function
at deploy (C:\Users\grzeg\AppData\Roaming\npm\node_modules\firebase-tools\lib\deploy\index.js:68:57)
at Command._action (C:\Users\grzeg\AppData\Roaming\npm\node_modules\firebase-tools\commands\deploy.js:47:12)
at C:\Users\grzeg\AppData\Roaming\npm\node_modules\firebase-tools\lib\command.js:176:29
at tryCatch (C:\Users\grzeg\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\rsvp\dist\rsvp.js:539:12)
at invokeCallback (C:\Users\grzeg\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\rsvp\dist\rsvp.js:554:13)
at publish (C:\Users\grzeg\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\rsvp\dist\rsvp.js:522:7)
at flush (C:\Users\grzeg\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\rsvp\dist\rsvp.js:2414:5)
at _combinedTickCallback (internal/process/next_tick.js:73:7)
at process._tickCallback (internal/process/next_tick.js:104:9

      

How can I fix this?

+3


source to share


2 answers


I also faced the same problem. It is because of my firebase.json file is empty. As soon as I specified the directory to be loaded into the JSON file, it worked. More details https://firebase.google.com/docs/hosting/deploying



+8


source


I had the same thing, I just forgot to use a space to select which service I would like to deploy.



+2


source







All Articles