Docker & Visual Studio Code behave differently for "ng serve"

Discussão em 'Angular' iniciado por Yon, Setembro 11, 2024.

  1. Yon

    Yon Guest

    after updating Docker Desktop, the build no longer works.

    With ng serve in Visual Studio Code the application is built without error, but when it is done in Docker Desktop I get the following error:

    `Error: node_modules/@types/lodash/common/object.d.ts:1026:46 - error TS1005: '?' expected.

    1026 : K extends ${infer N extends number} ? T[N] ~

    Error: node_modules/@types/lodash/common/object.d.ts:1026:51 - error TS2536: Type 'N' cannot be used to index type 'T'.

    1026 : K extends ${infer N extends number} ? T[N] ~~~~

    Error: node_modules/@types/lodash/common/object.d.ts:1031:46 - error TS1005: '?' expected.

    1031 : K extends ${infer N extends number} ? T[N] ~

    Error: node_modules/@types/lodash/common/object.d.ts:1031:51 - error TS2536: Type 'N' cannot be used to index type 'T'.

    1031 : K extends ${infer N extends number} ? T[N] ~~~~

    Error: node_modules/@types/lodash/common/object.d.ts:1041:46 - error TS1005: '?' expected.

    1041 : K extends `${infer N extends number}``

    How can I fix the problem?

    I have already installed the old version of Docker Desktop and still have the same problem.

    Continue reading...

Compartilhe esta Página