Question: I'm currently following a tutorial and the tutorial is making use of `EventEmitter`. The code goes like this

```
@Output() ratingClicked: EventEmitter<string> =
        new EventEmitter<string>();

```

But it visual studio code gives me these errors:

1. Type 'EventEmitter' is not generic.
2. Expected 0 type arguments, but got 1.

Even in the [angular website](https://angular.io/api/core/EventEmitter) it looks like that code is correct. 

I'm currently using Angular CLI: 1.7.4; Node: 8.11.1; Typescript: 2.8.1

Answer: 
You are probably using the `node` native EventEmitter from `node/index.d.ts` i.e. 

```
import { EventEmitter } from 'events';

```

Fix
===

Change the import to the one from angular: 

```
import { EventEmitter } from '@angular/core';

```
I was doing the same tutorial and faced the same issue.

It is a problem with an import. `EventEmitter` must be imported from `@angular/core`

Use:

```
import { EventEmitter } from '@angular/core';

```

This will fix it.