NejcZdovc/ng2-select2

Issue with Angular 9

chrisleekr opened this issue · 4 comments

Hi,

I am having an issue with ng2-select2 with Angular 9 at the moment.

ERROR in node_modules/ng2-select2/ng2-select2.component.d.ts:2:88 - error TS2724: Module '"../@angular/core/core"' has no exported member 'Renderer'. Did you mean 'Renderer2'?
    
    2 import { AfterViewInit, ElementRef, EventEmitter, OnChanges, OnDestroy, SimpleChanges, Renderer, OnInit } from '@angular/core';
                                                                                             ~~~~~~~~
    
      node_modules/@angular/core/core.d.ts:5763:31
        5763 export declare abstract class Renderer2 {
                                           ~~~~~~~~~
        'Renderer2' is declared here.

Is there any plan to fix this issue or any interim solution?

Hi,
I am having the same issue, I need the fix please.

Hi,
I have the same issue.
Is there any fix?

Any update on this one? I'm getting the exact same issue.

This could help somebody, but I used https://www.npmjs.com/package/tastewise-ng2-select2 instead of just ng2-select2.
This new one is for angular 9 and up. All you need to do is update the import statements and it will fix the Renderer2 message.