Skip to main content

Agregar @types/node en Angular

Updated 1 min readMarkdown

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"]
    ....
}

48 views

No comments yet. Be the first to comment.