1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

TS2305: Module '@angular/core/testing' has no exported member async

Discussão em 'Angular' iniciado por Nixon Darius, Maio 27, 2025.

  1. Nixon Darius

    Nixon Darius Guest

    I updated angular version from 17 to 18 and because of which some modules are no longer supporter especially in spec.ts files while importing them. Like async from @angular/core/testing and **provideRouterTesting **from @angular/router/testing and **HttpClientTestingModule **from @angular/common/http/testing. The exact error messages are as follows


    @angular/router/testing' has no exported member provideRouterTesting TS2305: Module '@angular/core/testing' has no exported member async TS6385: HttpClientTestingModule is deprecated.
    ​

    I need to know the alternatives for these modules. It will be helpful if anyone can update the alternative modules for these.

    Continue reading...

Compartilhe esta Página