Agregar @types/node en Angular

·

1 min read

Escenario:

En una actualización de angular 10 hacia angular 11 y luego de reemplazar TSLint por ESLint, el ejecutar ng s me muestra un error:

Do you need to install type definitions for node? Try npm i @types/node and then add node to the types field in your tsconfig.

Solución:

npm i -D @types/node
// En tsconfig.json
"angularCompilerOptions": {
    "types" : ["node"]
    ....
}