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

How to make new Map.groupBy work in TypeScript/Angular project?

Discussão em 'Angular' iniciado por Grogu, Setembro 25, 2024.

  1. Grogu

    Grogu Guest

    I want to use the new Map.groupBy function in an NX/Angular/TypeScript project, but this is not working.

    I had IDE errors saying that the function is unrecognized. I've fixed that updating tsconfig.base.json file to use ESNext:

    "lib": ["ESNext", "dom"],


    Now my unit tests are not working due to a similar error:

    Map.groupBy is not a function
    TypeError: Map.groupBy is not a function


    What are the requirements to make it work?

    Continue reading...

Compartilhe esta Página