Angular V18: NullInjectorError: No provider for _NgZone

Discussão em 'Angular' iniciado por cj devin, Novembro 13, 2024.

  1. cj devin

    cj devin Guest

    I'm currently in the process of upgrading from Angular version 17 to version 18.0.0. One of my components relies on the NgZone import from @angular/core."

    for example-

    this.ngZone.runOutsideAngular(() => {
    setTimeout(() => {
    this.expand()
    }, 0);
    });


    angular.json have configuration like "polyfills": ["zone.js"].

    But when run apps getting error on browser dev tool console.

    NullInjectorError: No provider for _NgZone!

    Feel free to inform me if any additional information is required. Could you please assist with this?

    Thanks!

    Continue reading...

Compartilhe esta Página