Might be you forgot to import EventEmitter from '@angular/core' import { Component, EventEmitter } from '@angular/core';