Trying to include Renderer2 with the following import:
import { Renderer2 } from '@angular/core';
Encountering an error:
"Module 'project/node_modules/@angular/core/index' does not have an exported member 'Renderer2'.
Puzzled by this issue. Using PrimeNG (here) which utilizes a component named ConfirmDialog also including the same import statement without encountering any problems. Some sources suggest that Renderer2 is only compatible with Angular 4, but I am currently using @angular/core 2.2.4. If Angular 4 compatibility is necessary, shouldn't the ConfirmDialog of PrimeNG encounter issues (even though it doesn't)?