Error: Functions did not deploy properly












2















Functions deploy had errors. To continue deploying other features (such as database), run:



firebase deploy --except functions


Error:




Functions did not deploy properly.











share|improve this question

























  • I'm having the same problem. With firebase-tools version 3.8.0 and version 3.9.0

    – MikeG
    May 23 '17 at 4:18













  • I just came back to it this morning, and ran firebase deploy --only functions and its now working again without me changing anything

    – MikeG
    May 23 '17 at 13:02






  • 1





    actually it's worth noting that I did make one small change. Last night, just before I started getting this error, I changed the name of the function. Then this morning I changed the name back again to the original name and it worked fine. Can't be sure if changing the function name caused the error but it's possible

    – MikeG
    May 23 '17 at 13:34











  • i think changing the name then changing it back did actually fix it for me

    – ewizard
    Feb 15 '18 at 20:57
















2















Functions deploy had errors. To continue deploying other features (such as database), run:



firebase deploy --except functions


Error:




Functions did not deploy properly.











share|improve this question

























  • I'm having the same problem. With firebase-tools version 3.8.0 and version 3.9.0

    – MikeG
    May 23 '17 at 4:18













  • I just came back to it this morning, and ran firebase deploy --only functions and its now working again without me changing anything

    – MikeG
    May 23 '17 at 13:02






  • 1





    actually it's worth noting that I did make one small change. Last night, just before I started getting this error, I changed the name of the function. Then this morning I changed the name back again to the original name and it worked fine. Can't be sure if changing the function name caused the error but it's possible

    – MikeG
    May 23 '17 at 13:34











  • i think changing the name then changing it back did actually fix it for me

    – ewizard
    Feb 15 '18 at 20:57














2












2








2








Functions deploy had errors. To continue deploying other features (such as database), run:



firebase deploy --except functions


Error:




Functions did not deploy properly.











share|improve this question
















Functions deploy had errors. To continue deploying other features (such as database), run:



firebase deploy --except functions


Error:




Functions did not deploy properly.








firebase google-cloud-functions






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited May 23 '17 at 9:02









Geoff James

2,3371724




2,3371724










asked May 19 '17 at 10:15









MarioMario

96111




96111













  • I'm having the same problem. With firebase-tools version 3.8.0 and version 3.9.0

    – MikeG
    May 23 '17 at 4:18













  • I just came back to it this morning, and ran firebase deploy --only functions and its now working again without me changing anything

    – MikeG
    May 23 '17 at 13:02






  • 1





    actually it's worth noting that I did make one small change. Last night, just before I started getting this error, I changed the name of the function. Then this morning I changed the name back again to the original name and it worked fine. Can't be sure if changing the function name caused the error but it's possible

    – MikeG
    May 23 '17 at 13:34











  • i think changing the name then changing it back did actually fix it for me

    – ewizard
    Feb 15 '18 at 20:57



















  • I'm having the same problem. With firebase-tools version 3.8.0 and version 3.9.0

    – MikeG
    May 23 '17 at 4:18













  • I just came back to it this morning, and ran firebase deploy --only functions and its now working again without me changing anything

    – MikeG
    May 23 '17 at 13:02






  • 1





    actually it's worth noting that I did make one small change. Last night, just before I started getting this error, I changed the name of the function. Then this morning I changed the name back again to the original name and it worked fine. Can't be sure if changing the function name caused the error but it's possible

    – MikeG
    May 23 '17 at 13:34











  • i think changing the name then changing it back did actually fix it for me

    – ewizard
    Feb 15 '18 at 20:57

















I'm having the same problem. With firebase-tools version 3.8.0 and version 3.9.0

– MikeG
May 23 '17 at 4:18







I'm having the same problem. With firebase-tools version 3.8.0 and version 3.9.0

– MikeG
May 23 '17 at 4:18















I just came back to it this morning, and ran firebase deploy --only functions and its now working again without me changing anything

– MikeG
May 23 '17 at 13:02





I just came back to it this morning, and ran firebase deploy --only functions and its now working again without me changing anything

– MikeG
May 23 '17 at 13:02




1




1





actually it's worth noting that I did make one small change. Last night, just before I started getting this error, I changed the name of the function. Then this morning I changed the name back again to the original name and it worked fine. Can't be sure if changing the function name caused the error but it's possible

– MikeG
May 23 '17 at 13:34





actually it's worth noting that I did make one small change. Last night, just before I started getting this error, I changed the name of the function. Then this morning I changed the name back again to the original name and it worked fine. Can't be sure if changing the function name caused the error but it's possible

– MikeG
May 23 '17 at 13:34













i think changing the name then changing it back did actually fix it for me

– ewizard
Feb 15 '18 at 20:57





i think changing the name then changing it back did actually fix it for me

– ewizard
Feb 15 '18 at 20:57












5 Answers
5






active

oldest

votes


















4














I had the same issue with Firestore ,my problem was that the path to the document was bad. I had a slash at the beginning and the end of the path to my document like I used to do with Firebase Realtime Database path.
Hope it helps someone.






share|improve this answer































    1














    After getting the above deploy error, I edited the index.js file and changed the name of the function from "helloWorld" to "heyWorld" and suddenly the firebase deploy command worked.






    share|improve this answer































      0














      Just close whatever IDE you're using and then reopen it. Then on node redeploy your functions. This should resolve the issue.






      share|improve this answer































        0














        My firebase couldnt find the modules firebase-functions and firebase-admin on deploy because I wrote them in devDependencies instead of just dependencies. But after it ... I still had an issue. But this solved it for me: https://github.com/nuxt/nuxt.js/issues/2714#issuecomment-423048343.



        Just notice node 8 as engine object in your function's folder package.json and add the babel snippet in your nuxt config.






        share|improve this answer































          -2














          Check your json modules dependencies inside functions folder.
          There's an specific json package there.
          If some module you are including in the project and is not there (in json) you probably will have the error mentioned.
          To install just run:



          npm install <module> --save



          or



          yarn add <module> --save



          and then run your deploy again:



          firebase deploy --only functions






          share|improve this answer
























          • I checked hat each module was installed but i'm still getting this error

            – MikeG
            May 23 '17 at 4:21











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f44067372%2ferror-functions-did-not-deploy-properly%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          5 Answers
          5






          active

          oldest

          votes








          5 Answers
          5






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          4














          I had the same issue with Firestore ,my problem was that the path to the document was bad. I had a slash at the beginning and the end of the path to my document like I used to do with Firebase Realtime Database path.
          Hope it helps someone.






          share|improve this answer




























            4














            I had the same issue with Firestore ,my problem was that the path to the document was bad. I had a slash at the beginning and the end of the path to my document like I used to do with Firebase Realtime Database path.
            Hope it helps someone.






            share|improve this answer


























              4












              4








              4







              I had the same issue with Firestore ,my problem was that the path to the document was bad. I had a slash at the beginning and the end of the path to my document like I used to do with Firebase Realtime Database path.
              Hope it helps someone.






              share|improve this answer













              I had the same issue with Firestore ,my problem was that the path to the document was bad. I had a slash at the beginning and the end of the path to my document like I used to do with Firebase Realtime Database path.
              Hope it helps someone.







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered Jan 17 '18 at 0:20









              jamesthakidjamesthakid

              82869




              82869

























                  1














                  After getting the above deploy error, I edited the index.js file and changed the name of the function from "helloWorld" to "heyWorld" and suddenly the firebase deploy command worked.






                  share|improve this answer




























                    1














                    After getting the above deploy error, I edited the index.js file and changed the name of the function from "helloWorld" to "heyWorld" and suddenly the firebase deploy command worked.






                    share|improve this answer


























                      1












                      1








                      1







                      After getting the above deploy error, I edited the index.js file and changed the name of the function from "helloWorld" to "heyWorld" and suddenly the firebase deploy command worked.






                      share|improve this answer













                      After getting the above deploy error, I edited the index.js file and changed the name of the function from "helloWorld" to "heyWorld" and suddenly the firebase deploy command worked.







                      share|improve this answer












                      share|improve this answer



                      share|improve this answer










                      answered Dec 28 '17 at 4:29









                      william wolfewilliam wolfe

                      111




                      111























                          0














                          Just close whatever IDE you're using and then reopen it. Then on node redeploy your functions. This should resolve the issue.






                          share|improve this answer




























                            0














                            Just close whatever IDE you're using and then reopen it. Then on node redeploy your functions. This should resolve the issue.






                            share|improve this answer


























                              0












                              0








                              0







                              Just close whatever IDE you're using and then reopen it. Then on node redeploy your functions. This should resolve the issue.






                              share|improve this answer













                              Just close whatever IDE you're using and then reopen it. Then on node redeploy your functions. This should resolve the issue.







                              share|improve this answer












                              share|improve this answer



                              share|improve this answer










                              answered Sep 24 '18 at 18:11









                              Junia MontanaJunia Montana

                              13123




                              13123























                                  0














                                  My firebase couldnt find the modules firebase-functions and firebase-admin on deploy because I wrote them in devDependencies instead of just dependencies. But after it ... I still had an issue. But this solved it for me: https://github.com/nuxt/nuxt.js/issues/2714#issuecomment-423048343.



                                  Just notice node 8 as engine object in your function's folder package.json and add the babel snippet in your nuxt config.






                                  share|improve this answer




























                                    0














                                    My firebase couldnt find the modules firebase-functions and firebase-admin on deploy because I wrote them in devDependencies instead of just dependencies. But after it ... I still had an issue. But this solved it for me: https://github.com/nuxt/nuxt.js/issues/2714#issuecomment-423048343.



                                    Just notice node 8 as engine object in your function's folder package.json and add the babel snippet in your nuxt config.






                                    share|improve this answer


























                                      0












                                      0








                                      0







                                      My firebase couldnt find the modules firebase-functions and firebase-admin on deploy because I wrote them in devDependencies instead of just dependencies. But after it ... I still had an issue. But this solved it for me: https://github.com/nuxt/nuxt.js/issues/2714#issuecomment-423048343.



                                      Just notice node 8 as engine object in your function's folder package.json and add the babel snippet in your nuxt config.






                                      share|improve this answer













                                      My firebase couldnt find the modules firebase-functions and firebase-admin on deploy because I wrote them in devDependencies instead of just dependencies. But after it ... I still had an issue. But this solved it for me: https://github.com/nuxt/nuxt.js/issues/2714#issuecomment-423048343.



                                      Just notice node 8 as engine object in your function's folder package.json and add the babel snippet in your nuxt config.







                                      share|improve this answer












                                      share|improve this answer



                                      share|improve this answer










                                      answered Nov 23 '18 at 0:48









                                      phngphng

                                      738




                                      738























                                          -2














                                          Check your json modules dependencies inside functions folder.
                                          There's an specific json package there.
                                          If some module you are including in the project and is not there (in json) you probably will have the error mentioned.
                                          To install just run:



                                          npm install <module> --save



                                          or



                                          yarn add <module> --save



                                          and then run your deploy again:



                                          firebase deploy --only functions






                                          share|improve this answer
























                                          • I checked hat each module was installed but i'm still getting this error

                                            – MikeG
                                            May 23 '17 at 4:21
















                                          -2














                                          Check your json modules dependencies inside functions folder.
                                          There's an specific json package there.
                                          If some module you are including in the project and is not there (in json) you probably will have the error mentioned.
                                          To install just run:



                                          npm install <module> --save



                                          or



                                          yarn add <module> --save



                                          and then run your deploy again:



                                          firebase deploy --only functions






                                          share|improve this answer
























                                          • I checked hat each module was installed but i'm still getting this error

                                            – MikeG
                                            May 23 '17 at 4:21














                                          -2












                                          -2








                                          -2







                                          Check your json modules dependencies inside functions folder.
                                          There's an specific json package there.
                                          If some module you are including in the project and is not there (in json) you probably will have the error mentioned.
                                          To install just run:



                                          npm install <module> --save



                                          or



                                          yarn add <module> --save



                                          and then run your deploy again:



                                          firebase deploy --only functions






                                          share|improve this answer













                                          Check your json modules dependencies inside functions folder.
                                          There's an specific json package there.
                                          If some module you are including in the project and is not there (in json) you probably will have the error mentioned.
                                          To install just run:



                                          npm install <module> --save



                                          or



                                          yarn add <module> --save



                                          and then run your deploy again:



                                          firebase deploy --only functions







                                          share|improve this answer












                                          share|improve this answer



                                          share|improve this answer










                                          answered May 19 '17 at 10:15









                                          MarioMario

                                          96111




                                          96111













                                          • I checked hat each module was installed but i'm still getting this error

                                            – MikeG
                                            May 23 '17 at 4:21



















                                          • I checked hat each module was installed but i'm still getting this error

                                            – MikeG
                                            May 23 '17 at 4:21

















                                          I checked hat each module was installed but i'm still getting this error

                                          – MikeG
                                          May 23 '17 at 4:21





                                          I checked hat each module was installed but i'm still getting this error

                                          – MikeG
                                          May 23 '17 at 4:21


















                                          draft saved

                                          draft discarded




















































                                          Thanks for contributing an answer to Stack Overflow!


                                          • Please be sure to answer the question. Provide details and share your research!

                                          But avoid



                                          • Asking for help, clarification, or responding to other answers.

                                          • Making statements based on opinion; back them up with references or personal experience.


                                          To learn more, see our tips on writing great answers.




                                          draft saved


                                          draft discarded














                                          StackExchange.ready(
                                          function () {
                                          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f44067372%2ferror-functions-did-not-deploy-properly%23new-answer', 'question_page');
                                          }
                                          );

                                          Post as a guest















                                          Required, but never shown





















































                                          Required, but never shown














                                          Required, but never shown












                                          Required, but never shown







                                          Required, but never shown

































                                          Required, but never shown














                                          Required, but never shown












                                          Required, but never shown







                                          Required, but never shown







                                          Popular posts from this blog

                                          "Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

                                          Alcedinidae

                                          RAC Tourist Trophy