NejcZdovc / ng2-select2

Select 2 wraper for angular2
MIT License
123 stars 93 forks source link

Issue with Angular 9 #148

Open chrisleekr opened 4 years ago

chrisleekr commented 4 years ago

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?

richirm commented 4 years ago

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

suhailkc commented 4 years ago

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

KevinCSTing commented 3 years ago

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

KevinCSTing commented 3 years ago

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.