Angular Discussion Forums

There's no such thing as a stupid question. Ask. Discuss. Learn.

VS Code intellisense not working

The intellisense appears to not be working in my VS code.

I'm trying to implement OnInit with the following code:

export class ConversationListComponent implements OnInit {}

As I haven't imported OnInit yet, I get the following error in the terminal:

ERROR in src/app/conversations/conversation-list.component.ts(9,51): error TS2304: Cannot find name 'OnInit'.

But, there is no red underline appearing in the editor, under OnInit.

Can someone please tell me why the intellisense isn't working?

Thanks a lot in advance

Damien 3 months ago
  • Whitelisted Links