In Angular For Every Error on Html and TS and Module Error it is showing same error Details












0















in Angular Project i am using Angular 5 with .Net MVC. for Ts error, Module Level Error and Even for HTML syntax error also it is Displaying same error. its getting Difficult to Handle. please Help me.



TypeError: exceptionHandler.handleError is not a function
at Object.next (core.js:5493)
at SafeSubscriber.schedulerFn [as _next] (core.js:4327`enter code here`)
at SafeSubscriber.__tryOrUnsub (Subscriber.js:239)
at SafeSubscriber.next (Subscriber.js:186)
at Subscriber._next (Subscriber.js:126)
at Subscriber.next (Subscriber.js:90)
at EventEmitter.Subject.next (Subject.js:55)
at EventEmitter.emit (core.js:4307)
at core.js:4767
at ZoneDelegate.invoke (zone.js:388)









share|improve this question



























    0















    in Angular Project i am using Angular 5 with .Net MVC. for Ts error, Module Level Error and Even for HTML syntax error also it is Displaying same error. its getting Difficult to Handle. please Help me.



    TypeError: exceptionHandler.handleError is not a function
    at Object.next (core.js:5493)
    at SafeSubscriber.schedulerFn [as _next] (core.js:4327`enter code here`)
    at SafeSubscriber.__tryOrUnsub (Subscriber.js:239)
    at SafeSubscriber.next (Subscriber.js:186)
    at Subscriber._next (Subscriber.js:126)
    at Subscriber.next (Subscriber.js:90)
    at EventEmitter.Subject.next (Subject.js:55)
    at EventEmitter.emit (core.js:4307)
    at core.js:4767
    at ZoneDelegate.invoke (zone.js:388)









    share|improve this question

























      0












      0








      0








      in Angular Project i am using Angular 5 with .Net MVC. for Ts error, Module Level Error and Even for HTML syntax error also it is Displaying same error. its getting Difficult to Handle. please Help me.



      TypeError: exceptionHandler.handleError is not a function
      at Object.next (core.js:5493)
      at SafeSubscriber.schedulerFn [as _next] (core.js:4327`enter code here`)
      at SafeSubscriber.__tryOrUnsub (Subscriber.js:239)
      at SafeSubscriber.next (Subscriber.js:186)
      at Subscriber._next (Subscriber.js:126)
      at Subscriber.next (Subscriber.js:90)
      at EventEmitter.Subject.next (Subject.js:55)
      at EventEmitter.emit (core.js:4307)
      at core.js:4767
      at ZoneDelegate.invoke (zone.js:388)









      share|improve this question














      in Angular Project i am using Angular 5 with .Net MVC. for Ts error, Module Level Error and Even for HTML syntax error also it is Displaying same error. its getting Difficult to Handle. please Help me.



      TypeError: exceptionHandler.handleError is not a function
      at Object.next (core.js:5493)
      at SafeSubscriber.schedulerFn [as _next] (core.js:4327`enter code here`)
      at SafeSubscriber.__tryOrUnsub (Subscriber.js:239)
      at SafeSubscriber.next (Subscriber.js:186)
      at Subscriber._next (Subscriber.js:126)
      at Subscriber.next (Subscriber.js:90)
      at EventEmitter.Subject.next (Subject.js:55)
      at EventEmitter.emit (core.js:4307)
      at core.js:4767
      at ZoneDelegate.invoke (zone.js:388)






      angular zone.js






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 23 '18 at 4:31









      Murali GaneshMurali Ganesh

      82




      82
























          2 Answers
          2






          active

          oldest

          votes


















          0














          Seems you have custom exception handler in your code.
          1. In case its not really required remove from code.



          import { ErrorHandler } from '@angular/core';


          remove this import and dependent code from your project.





          1. In case its required then, double check the exception handler class



            import { ErrorHandler } from '@angular/core';

            export default class MyErrorHandler implements ErrorHandler {
            constructor() {

            super(true);
            }

            handleError(error) {

            super.handleError(error);
            }
            }






            import { NgModule, ErrorHandler } from '@angular/core';
            import MyErrorHandler from './my-error-handler';

            @NgModule({
            imports: [ BrowserModule ],
            declarations: [ App ],
            providers: [ { provide: ErrorHandler, useClass: MyErrorHandler } ]
            bootstrap: [ App ]
            })
            export class AppModule {}







          share|improve this answer































            0















            1. Check if you re-assigned global exception handler in your angular project like in thi article https://medium.com/@amcdnl/global-error-handling-with-angular2-6b992bdfb59c.
              And fix it or turn it off.
              Search the project for 'handleError'.


            2. Check same for JS level https://www.tutorialspoint.com/How-to-write-a-global-error-handler-in-JavaScript







            share|improve this answer























              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%2f53440679%2fin-angular-for-every-error-on-html-and-ts-and-module-error-it-is-showing-same-er%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









              0














              Seems you have custom exception handler in your code.
              1. In case its not really required remove from code.



              import { ErrorHandler } from '@angular/core';


              remove this import and dependent code from your project.





              1. In case its required then, double check the exception handler class



                import { ErrorHandler } from '@angular/core';

                export default class MyErrorHandler implements ErrorHandler {
                constructor() {

                super(true);
                }

                handleError(error) {

                super.handleError(error);
                }
                }






                import { NgModule, ErrorHandler } from '@angular/core';
                import MyErrorHandler from './my-error-handler';

                @NgModule({
                imports: [ BrowserModule ],
                declarations: [ App ],
                providers: [ { provide: ErrorHandler, useClass: MyErrorHandler } ]
                bootstrap: [ App ]
                })
                export class AppModule {}







              share|improve this answer




























                0














                Seems you have custom exception handler in your code.
                1. In case its not really required remove from code.



                import { ErrorHandler } from '@angular/core';


                remove this import and dependent code from your project.





                1. In case its required then, double check the exception handler class



                  import { ErrorHandler } from '@angular/core';

                  export default class MyErrorHandler implements ErrorHandler {
                  constructor() {

                  super(true);
                  }

                  handleError(error) {

                  super.handleError(error);
                  }
                  }






                  import { NgModule, ErrorHandler } from '@angular/core';
                  import MyErrorHandler from './my-error-handler';

                  @NgModule({
                  imports: [ BrowserModule ],
                  declarations: [ App ],
                  providers: [ { provide: ErrorHandler, useClass: MyErrorHandler } ]
                  bootstrap: [ App ]
                  })
                  export class AppModule {}







                share|improve this answer


























                  0












                  0








                  0







                  Seems you have custom exception handler in your code.
                  1. In case its not really required remove from code.



                  import { ErrorHandler } from '@angular/core';


                  remove this import and dependent code from your project.





                  1. In case its required then, double check the exception handler class



                    import { ErrorHandler } from '@angular/core';

                    export default class MyErrorHandler implements ErrorHandler {
                    constructor() {

                    super(true);
                    }

                    handleError(error) {

                    super.handleError(error);
                    }
                    }






                    import { NgModule, ErrorHandler } from '@angular/core';
                    import MyErrorHandler from './my-error-handler';

                    @NgModule({
                    imports: [ BrowserModule ],
                    declarations: [ App ],
                    providers: [ { provide: ErrorHandler, useClass: MyErrorHandler } ]
                    bootstrap: [ App ]
                    })
                    export class AppModule {}







                  share|improve this answer













                  Seems you have custom exception handler in your code.
                  1. In case its not really required remove from code.



                  import { ErrorHandler } from '@angular/core';


                  remove this import and dependent code from your project.





                  1. In case its required then, double check the exception handler class



                    import { ErrorHandler } from '@angular/core';

                    export default class MyErrorHandler implements ErrorHandler {
                    constructor() {

                    super(true);
                    }

                    handleError(error) {

                    super.handleError(error);
                    }
                    }






                    import { NgModule, ErrorHandler } from '@angular/core';
                    import MyErrorHandler from './my-error-handler';

                    @NgModule({
                    imports: [ BrowserModule ],
                    declarations: [ App ],
                    providers: [ { provide: ErrorHandler, useClass: MyErrorHandler } ]
                    bootstrap: [ App ]
                    })
                    export class AppModule {}








                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Nov 23 '18 at 4:41









                  Raja MohamedRaja Mohamed

                  767515




                  767515

























                      0















                      1. Check if you re-assigned global exception handler in your angular project like in thi article https://medium.com/@amcdnl/global-error-handling-with-angular2-6b992bdfb59c.
                        And fix it or turn it off.
                        Search the project for 'handleError'.


                      2. Check same for JS level https://www.tutorialspoint.com/How-to-write-a-global-error-handler-in-JavaScript







                      share|improve this answer




























                        0















                        1. Check if you re-assigned global exception handler in your angular project like in thi article https://medium.com/@amcdnl/global-error-handling-with-angular2-6b992bdfb59c.
                          And fix it or turn it off.
                          Search the project for 'handleError'.


                        2. Check same for JS level https://www.tutorialspoint.com/How-to-write-a-global-error-handler-in-JavaScript







                        share|improve this answer


























                          0












                          0








                          0








                          1. Check if you re-assigned global exception handler in your angular project like in thi article https://medium.com/@amcdnl/global-error-handling-with-angular2-6b992bdfb59c.
                            And fix it or turn it off.
                            Search the project for 'handleError'.


                          2. Check same for JS level https://www.tutorialspoint.com/How-to-write-a-global-error-handler-in-JavaScript







                          share|improve this answer














                          1. Check if you re-assigned global exception handler in your angular project like in thi article https://medium.com/@amcdnl/global-error-handling-with-angular2-6b992bdfb59c.
                            And fix it or turn it off.
                            Search the project for 'handleError'.


                          2. Check same for JS level https://www.tutorialspoint.com/How-to-write-a-global-error-handler-in-JavaScript








                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Nov 23 '18 at 4:38









                          Alexander PoshtarukAlexander Poshtaruk

                          1,302510




                          1,302510






























                              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%2f53440679%2fin-angular-for-every-error-on-html-and-ts-and-module-error-it-is-showing-same-er%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

                              Costa Masnaga

                              Fotorealismo

                              Sidney Franklin