webcat12345 / ngx-intl-tel-input

Phone number input field to support international numbers, Angular
MIT License
213 stars 335 forks source link

Version 3.2.0 appears to only work on Angular 12+ #447

Open Austinb opened 2 years ago

Austinb commented 2 years ago

Does not compile properly for Angular 11. Installing @3.1.3 works as expected. Would recommend rescinding the 3.2.0 version and jump to 3.2.1 or 3.3.x with updated package.json limiting installations to Angular 12+

Errors running 3.2.0 on Angular 11.2.x:

Error: node_modules/ngx-intl-tel-input/lib/data/country-code.d.ts:4:21 - error TS2694: Namespace '"/path/to/project/node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDeclaration'.

4     static ɵfac: i0.ɵɵFactoryDeclaration<CountryCode, never>;
                      ~~~~~~~~~~~~~~~~~~~~

And so on. According to another package we use ɵɵFactoryDeclaration is not available until Angular 12 (ref: https://github.com/angular/angular/issues/44366#issuecomment-985917280)