How to fix Angular error TS2552: Cannot find name 'Input'. Did you mean 'oninput'?

Problem:

You see the following error message while compiling your angular application:

error.txt
Error: src/app/my/my.component.ts:9:4 - error TS2552: Cannot find name 'Input'. Did you mean 'oninput'?

Solution

Open your module file, e.g. my.component.ts and add the following line at the top:

my.component.ts
import { Input } from '@angular/core';

 


Check out similar posts by category: Angular, Typescript