I'm trying to import Renderer2 using:
import { Renderer2 } from '@angular/core';
However, I get the error
"Module '"project/node_modules/@angular/core/index"' has no exported member 'Renderer2'.
I'm unsure why this is happening. I'm using PrimeNG (here) which contains a component called ConfirmDialog which contains the same import statement, yet I don't run into any issues with it. I've seen posts that suggest Renderer2 is only compatible with Angular 4 - I'm currently using @angular/core 2.2.4. If Angular 4 is required, then shouldn't the ConfirmDialog of PrimeNG break (it doesn't)?