I would like to get rid of the Error above. It started to appear after re-installed dependencies using npm i.
I tried removing "implements onInit" and it disappeared So the problem is related to it. But I want to use "implements onInit" without getting this error. I suspect it has to do also with typescript version (Which i upgraded to the latest).
Update: Of course I implemented ngOnInit function inside the class.
Error Message:
Class is using Angular features but is not decorated. Please add an explicit Angular decorator.(-992007)?
Code:
export class SomeClass implements OnInit {
ngOnInit():void{
//some code};
}