gpt4 book ai didi

Firebase 项目错误 TypeError : targetNames. join is not a function

转载 作者:行者123 更新时间:2023-12-01 08:23:44 27 4
gpt4 key购买 nike

您好,我正在关注本指南:https://codelabs.developers.google.com/codelabs/cloud-firebase-chat/#2当我想“firebase deploy”时,我得到这个错误:

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

我该如何解决?

最佳答案

我也遇到了同样的问题。这是因为我的 firebase.json 文件是空的。一旦我在 JSON 文件中指定了需要上传的目录,它就可以工作了。更多细节 https://firebase.google.com/docs/hosting/deploying

关于Firebase 项目错误 TypeError : targetNames. join is not a function,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44022147/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com