Why does my Angular application give an error when run on StackBlitz?












2















I have an Angular application that runs fine on my machine using ng serve, but when I run it on StackBlitz:



https://stackblitz.com/github/nickhodges/primedirective



I get the following error:



Error in /turbo_modules/@angular/compiler@7.0.4/bundles/compiler.umd.js (2617:21)
Can't resolve all parameters for ApplicationModule: (?).


I have updated the dependencies on the StackBlitz editor, and it still doesn't work, giving a slightly different error.



Error in /turbo_modules/@angular/compiler@7.1.0/bundles/compiler.umd.js (2497:21)
Can't resolve all parameters for ApplicationModule: (?).


Anyone have any idea why this error occurs on StackBlitz?










share|improve this question



























    2















    I have an Angular application that runs fine on my machine using ng serve, but when I run it on StackBlitz:



    https://stackblitz.com/github/nickhodges/primedirective



    I get the following error:



    Error in /turbo_modules/@angular/compiler@7.0.4/bundles/compiler.umd.js (2617:21)
    Can't resolve all parameters for ApplicationModule: (?).


    I have updated the dependencies on the StackBlitz editor, and it still doesn't work, giving a slightly different error.



    Error in /turbo_modules/@angular/compiler@7.1.0/bundles/compiler.umd.js (2497:21)
    Can't resolve all parameters for ApplicationModule: (?).


    Anyone have any idea why this error occurs on StackBlitz?










    share|improve this question

























      2












      2








      2


      1






      I have an Angular application that runs fine on my machine using ng serve, but when I run it on StackBlitz:



      https://stackblitz.com/github/nickhodges/primedirective



      I get the following error:



      Error in /turbo_modules/@angular/compiler@7.0.4/bundles/compiler.umd.js (2617:21)
      Can't resolve all parameters for ApplicationModule: (?).


      I have updated the dependencies on the StackBlitz editor, and it still doesn't work, giving a slightly different error.



      Error in /turbo_modules/@angular/compiler@7.1.0/bundles/compiler.umd.js (2497:21)
      Can't resolve all parameters for ApplicationModule: (?).


      Anyone have any idea why this error occurs on StackBlitz?










      share|improve this question














      I have an Angular application that runs fine on my machine using ng serve, but when I run it on StackBlitz:



      https://stackblitz.com/github/nickhodges/primedirective



      I get the following error:



      Error in /turbo_modules/@angular/compiler@7.0.4/bundles/compiler.umd.js (2617:21)
      Can't resolve all parameters for ApplicationModule: (?).


      I have updated the dependencies on the StackBlitz editor, and it still doesn't work, giving a slightly different error.



      Error in /turbo_modules/@angular/compiler@7.1.0/bundles/compiler.umd.js (2497:21)
      Can't resolve all parameters for ApplicationModule: (?).


      Anyone have any idea why this error occurs on StackBlitz?







      angular stackblitz






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 26 '18 at 4:56









      Nick HodgesNick Hodges

      12.8k246101




      12.8k246101
























          2 Answers
          2






          active

          oldest

          votes


















          5














          import 'core-js/es7/reflect'; include this line in your polyfills.ts



          visit the link its working now https://github-pigpd9.stackblitz.io
          and https://stackblitz.com/edit/github-pigpd9 (editorial url)






          share|improve this answer
























          • Thank you. That worked. You were first, and in five minutes, I will accept your answer.

            – Nick Hodges
            Nov 26 '18 at 5:08











          • You're welcome, happy to help @NickHodges

            – Vaibhav Kumar Goyal
            Nov 26 '18 at 5:22



















          2














          yes this is because we have to import



          import 'core-js/es7/reflect';


          in our polyfils.ts file.
          after including this it will work.



          there is only one reason why it's happing and you can read that reason in the introduction to angular 7



          this is happening when we upgrade Angular 5 to Angular 7






          share|improve this answer


























          • there is only one reason why it's happing and you can read that reason in introduction to angular 7 blog.angular.io/…

            – yurzui
            Nov 26 '18 at 5:06











          • wow, this awesome @yurzui thanks for sharing this.

            – Hrishikesh Kale
            Nov 26 '18 at 5:06











          • Thank you -- you were correct, but Vaibhav Kumar Goyal was first. ;-)

            – Nick Hodges
            Nov 26 '18 at 5:12






          • 2





            haha not an issue, we all are here to help each other. that doesn't matter. happy coding brother.

            – Hrishikesh Kale
            Nov 26 '18 at 5:13











          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%2f53474978%2fwhy-does-my-angular-application-give-an-error-when-run-on-stackblitz%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          5














          import 'core-js/es7/reflect'; include this line in your polyfills.ts



          visit the link its working now https://github-pigpd9.stackblitz.io
          and https://stackblitz.com/edit/github-pigpd9 (editorial url)






          share|improve this answer
























          • Thank you. That worked. You were first, and in five minutes, I will accept your answer.

            – Nick Hodges
            Nov 26 '18 at 5:08











          • You're welcome, happy to help @NickHodges

            – Vaibhav Kumar Goyal
            Nov 26 '18 at 5:22
















          5














          import 'core-js/es7/reflect'; include this line in your polyfills.ts



          visit the link its working now https://github-pigpd9.stackblitz.io
          and https://stackblitz.com/edit/github-pigpd9 (editorial url)






          share|improve this answer
























          • Thank you. That worked. You were first, and in five minutes, I will accept your answer.

            – Nick Hodges
            Nov 26 '18 at 5:08











          • You're welcome, happy to help @NickHodges

            – Vaibhav Kumar Goyal
            Nov 26 '18 at 5:22














          5












          5








          5







          import 'core-js/es7/reflect'; include this line in your polyfills.ts



          visit the link its working now https://github-pigpd9.stackblitz.io
          and https://stackblitz.com/edit/github-pigpd9 (editorial url)






          share|improve this answer













          import 'core-js/es7/reflect'; include this line in your polyfills.ts



          visit the link its working now https://github-pigpd9.stackblitz.io
          and https://stackblitz.com/edit/github-pigpd9 (editorial url)







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 26 '18 at 5:03









          Vaibhav Kumar GoyalVaibhav Kumar Goyal

          674613




          674613













          • Thank you. That worked. You were first, and in five minutes, I will accept your answer.

            – Nick Hodges
            Nov 26 '18 at 5:08











          • You're welcome, happy to help @NickHodges

            – Vaibhav Kumar Goyal
            Nov 26 '18 at 5:22



















          • Thank you. That worked. You were first, and in five minutes, I will accept your answer.

            – Nick Hodges
            Nov 26 '18 at 5:08











          • You're welcome, happy to help @NickHodges

            – Vaibhav Kumar Goyal
            Nov 26 '18 at 5:22

















          Thank you. That worked. You were first, and in five minutes, I will accept your answer.

          – Nick Hodges
          Nov 26 '18 at 5:08





          Thank you. That worked. You were first, and in five minutes, I will accept your answer.

          – Nick Hodges
          Nov 26 '18 at 5:08













          You're welcome, happy to help @NickHodges

          – Vaibhav Kumar Goyal
          Nov 26 '18 at 5:22





          You're welcome, happy to help @NickHodges

          – Vaibhav Kumar Goyal
          Nov 26 '18 at 5:22













          2














          yes this is because we have to import



          import 'core-js/es7/reflect';


          in our polyfils.ts file.
          after including this it will work.



          there is only one reason why it's happing and you can read that reason in the introduction to angular 7



          this is happening when we upgrade Angular 5 to Angular 7






          share|improve this answer


























          • there is only one reason why it's happing and you can read that reason in introduction to angular 7 blog.angular.io/…

            – yurzui
            Nov 26 '18 at 5:06











          • wow, this awesome @yurzui thanks for sharing this.

            – Hrishikesh Kale
            Nov 26 '18 at 5:06











          • Thank you -- you were correct, but Vaibhav Kumar Goyal was first. ;-)

            – Nick Hodges
            Nov 26 '18 at 5:12






          • 2





            haha not an issue, we all are here to help each other. that doesn't matter. happy coding brother.

            – Hrishikesh Kale
            Nov 26 '18 at 5:13
















          2














          yes this is because we have to import



          import 'core-js/es7/reflect';


          in our polyfils.ts file.
          after including this it will work.



          there is only one reason why it's happing and you can read that reason in the introduction to angular 7



          this is happening when we upgrade Angular 5 to Angular 7






          share|improve this answer


























          • there is only one reason why it's happing and you can read that reason in introduction to angular 7 blog.angular.io/…

            – yurzui
            Nov 26 '18 at 5:06











          • wow, this awesome @yurzui thanks for sharing this.

            – Hrishikesh Kale
            Nov 26 '18 at 5:06











          • Thank you -- you were correct, but Vaibhav Kumar Goyal was first. ;-)

            – Nick Hodges
            Nov 26 '18 at 5:12






          • 2





            haha not an issue, we all are here to help each other. that doesn't matter. happy coding brother.

            – Hrishikesh Kale
            Nov 26 '18 at 5:13














          2












          2








          2







          yes this is because we have to import



          import 'core-js/es7/reflect';


          in our polyfils.ts file.
          after including this it will work.



          there is only one reason why it's happing and you can read that reason in the introduction to angular 7



          this is happening when we upgrade Angular 5 to Angular 7






          share|improve this answer















          yes this is because we have to import



          import 'core-js/es7/reflect';


          in our polyfils.ts file.
          after including this it will work.



          there is only one reason why it's happing and you can read that reason in the introduction to angular 7



          this is happening when we upgrade Angular 5 to Angular 7







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Nov 26 '18 at 5:08

























          answered Nov 26 '18 at 5:04









          Hrishikesh KaleHrishikesh Kale

          2,2382618




          2,2382618













          • there is only one reason why it's happing and you can read that reason in introduction to angular 7 blog.angular.io/…

            – yurzui
            Nov 26 '18 at 5:06











          • wow, this awesome @yurzui thanks for sharing this.

            – Hrishikesh Kale
            Nov 26 '18 at 5:06











          • Thank you -- you were correct, but Vaibhav Kumar Goyal was first. ;-)

            – Nick Hodges
            Nov 26 '18 at 5:12






          • 2





            haha not an issue, we all are here to help each other. that doesn't matter. happy coding brother.

            – Hrishikesh Kale
            Nov 26 '18 at 5:13



















          • there is only one reason why it's happing and you can read that reason in introduction to angular 7 blog.angular.io/…

            – yurzui
            Nov 26 '18 at 5:06











          • wow, this awesome @yurzui thanks for sharing this.

            – Hrishikesh Kale
            Nov 26 '18 at 5:06











          • Thank you -- you were correct, but Vaibhav Kumar Goyal was first. ;-)

            – Nick Hodges
            Nov 26 '18 at 5:12






          • 2





            haha not an issue, we all are here to help each other. that doesn't matter. happy coding brother.

            – Hrishikesh Kale
            Nov 26 '18 at 5:13

















          there is only one reason why it's happing and you can read that reason in introduction to angular 7 blog.angular.io/…

          – yurzui
          Nov 26 '18 at 5:06





          there is only one reason why it's happing and you can read that reason in introduction to angular 7 blog.angular.io/…

          – yurzui
          Nov 26 '18 at 5:06













          wow, this awesome @yurzui thanks for sharing this.

          – Hrishikesh Kale
          Nov 26 '18 at 5:06





          wow, this awesome @yurzui thanks for sharing this.

          – Hrishikesh Kale
          Nov 26 '18 at 5:06













          Thank you -- you were correct, but Vaibhav Kumar Goyal was first. ;-)

          – Nick Hodges
          Nov 26 '18 at 5:12





          Thank you -- you were correct, but Vaibhav Kumar Goyal was first. ;-)

          – Nick Hodges
          Nov 26 '18 at 5:12




          2




          2





          haha not an issue, we all are here to help each other. that doesn't matter. happy coding brother.

          – Hrishikesh Kale
          Nov 26 '18 at 5:13





          haha not an issue, we all are here to help each other. that doesn't matter. happy coding brother.

          – Hrishikesh Kale
          Nov 26 '18 at 5:13


















          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%2f53474978%2fwhy-does-my-angular-application-give-an-error-when-run-on-stackblitz%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

          To store a contact into the json file from server.js file using a class in NodeJS

          Redirect URL with Chrome Remote Debugging Android Devices

          Dieringhausen