ng2-tooltip-directive icon indicating copy to clipboard operation
ng2-tooltip-directive copied to clipboard

Error: export 'ɵɵFactoryTarget' (imported as 'i0') was not found in '@angular/core'

Open jagannathgouda97 opened this issue 3 years ago • 5 comments

I am getting below error after installing the latest ng2-tooltip-directive.

ERROR in ./node_modules/ng2-tooltip-directive/fesm2015/ng2-tooltip-directive.js 164:194-212 "export 'ɵɵFactoryTarget' (imported as 'i0') was not found in '@angular/core' ERROR in ./node_modules/ng2-tooltip-directive/fesm2015/ng2-tooltip-directive.js 612:313-331 "export 'ɵɵFactoryTarget' (imported as 'i0') was not found in '@angular/core' ERROR in ./node_modules/ng2-tooltip-directive/fesm2015/ng2-tooltip-directive.js 753:139-157 "export 'ɵɵFactoryTarget' (imported as 'i0') was not found in '@angular/core' ERROR in ./node_modules/ng2-tooltip-directive/fesm2015/ng2-tooltip-directive.js 166:0-27 "export 'ɵɵngDeclareClassMetadata' (imported as 'i0') was not found in '@angular/core' ERROR in ./node_modules/ng2-tooltip-directive/fesm2015/ng2-tooltip-directive.js 614:0-27 "export 'ɵɵngDeclareClassMetadata' (imported as 'i0') was not found in '@angular/core' ERROR in ./node_modules/ng2-tooltip-directive/fesm2015/ng2-tooltip-directive.js 759:0-27 "export 'ɵɵngDeclareClassMetadata' (imported as 'i0') was not found in '@angular/core' ERROR in ./node_modules/ng2-tooltip-directive/fesm2015/ng2-tooltip-directive.js 165:24-47 "export 'ɵɵngDeclareComponent' (imported as 'i0') was not found in '@angular/core' ERROR in ./node_modules/ng2-tooltip-directive/fesm2015/ng2-tooltip-directive.js 613:24-47 "export 'ɵɵngDeclareDirective' (imported as 'i0') was not found in '@angular/core' ERROR in ./node_modules/ng2-tooltip-directive/fesm2015/ng2-tooltip-directive.js 164:24-45 "export 'ɵɵngDeclareFactory' (imported as 'i0') was not found in '@angular/core' ERROR in ./node_modules/ng2-tooltip-directive/fesm2015/ng2-tooltip-directive.js 612:24-45 "export 'ɵɵngDeclareFactory' (imported as 'i0') was not found in '@angular/core' ERROR in ./node_modules/ng2-tooltip-directive/fesm2015/ng2-tooltip-directive.js 753:21-42 "export 'ɵɵngDeclareFactory' (imported as 'i0') was not found in '@angular/core' ERROR in ./node_modules/ng2-tooltip-directive/fesm2015/ng2-tooltip-directive.js 756:21-43 "export 'ɵɵngDeclareInjector' (imported as 'i0') was not found in '@angular/core' ERROR in ./node_modules/ng2-tooltip-directive/fesm2015/ng2-tooltip-directive.js 754:21-43 "export 'ɵɵngDeclareNgModule' (imported as 'i0') was not found in '@angular/core'

Angular version: 8.2.14 ng2-tooltip-directive version: 2.10.3

Do I need to upgrade Angular to use to use the latest ng2-tooltip-directive library? Any suggestion?

jagannathgouda97 avatar Dec 06 '21 22:12 jagannathgouda97

I'm having the same issues with version 11.2.11

degysnet avatar Dec 07 '21 18:12 degysnet

I have the same issue with ɵɵFactoryDeclaration:

static ɵfac: i0.ɵɵFactoryDeclaration<TooltipComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<TooltipComponent, "tooltip", never, { "data": "data"; "show": "show"; }, {}, never, never>;

markb-trustifi avatar Dec 13 '21 18:12 markb-trustifi

See if this helps @jagannathgouda97 https://stackoverflow.com/questions/68509988/unable-to-do-npm-start

xsh2047 avatar Jan 19 '22 01:01 xsh2047

Install an earlier version. [2.9.22] fixes this.

madmacc avatar Mar 02 '22 22:03 madmacc