drozhzhin-n-e / ng2-tooltip-directive

The tooltip is a pop-up tip that appears when you hover over an item or click on it.
http://ivylab.space/tooltip
MIT License
102 stars 76 forks source link

Error: node_modules/ng2-tooltip-directive/lib/tooltip.directive.d.ts:110:21 #145

Open credondocr opened 3 years ago

credondocr commented 3 years ago

After your last publish 2.10.0 I' m getting the following error during build time

Error: node_modules/ng2-tooltip-directive/lib/tooltip.directive.d.ts:110:21 - error TS2694: Namespace '"/home/credondocr/workspace/consealed/consealed/packages/client/node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDeclaration'.

110     static ɵfac: i0.ɵɵFactoryDeclaration<TooltipDirective, [{ optional: true; }, null, null, null, null]>;
                        ~~~~~~~~~~~~~~~~~~~~
node_modules/ng2-tooltip-directive/lib/tooltip.directive.d.ts:111:21 - error TS2694: Namespace '"/home/credondocr/workspace/consealed/consealed/packages/client/node_modules/@angular/core/core"' has no exported member 'ɵɵDirectiveDeclaration'.

111     static ɵdir: i0.ɵɵDirectiveDeclaration<TooltipDirective, "[tooltip]", ["tooltip"], { "options": "options"; "tooltipValue": "tooltip"; "placement": "placement"; "autoPlacement": "autoPlacement"; "contentTypeBackwardCompatibility": "content-type"; "contentType": "contentType"; "hideDelayMobile": "hide-delay-mobile"; "hideDelayTouchscreen": "hideDelayTouchscreen"; "zIndexBackwardCompatibility": "z-index"; "zIndex": "zIndex"; "animationDurationBackwardCompatibility": "animation-duration"; "animationDuration": "animationDuration"; "trigger": "trigger"; "tooltipClassBackwardCompatibility": "tooltip-class"; "tooltipClass": "tooltipClass"; "display": "display"; "displayMobile": "display-mobile"; "displayTouchscreen": "displayTouchscreen"; "shadow": "shadow"; "theme": "theme"; "offset": "offset"; "width": "width"; "maxWidthBackwardCompatibility": "max-width"; "maxWidth": "maxWidth"; "id": "id"; "showDelayBackwardCompatibility": "show-delay"; "showDelay": "showDelay"; "hideDelayBackwardCompatibility": "hide-delay"; "hideDelay": "hideDelay"; "hideDelayAfterClick": "hideDelayAfterClick"; "pointerEvents": "pointerEvents"; "position": "position"; }, { "events": "events"; }, never>;
                        ~~~~~~~~~~~~~~~~~~~~~~
node_modules/ng2-tooltip-directive/lib/tooltip.component.d.ts:40:21 - error TS2694: Namespace '"/home/credondocr/workspace/consealed/consealed/packages/client/node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDeclaration'.

40     static ɵfac: i0.ɵɵFactoryDeclaration<TooltipComponent, never>;
                       ~~~~~~~~~~~~~~~~~~~~
node_modules/ng2-tooltip-directive/lib/tooltip.component.d.ts:41:21 - error TS2694: Namespace '"/home/credondocr/workspace/consealed/consealed/packages/client/node_modules/@angular/core/core"' has no exported member 'ɵɵComponentDeclaration'.

41     static ɵcmp: i0.ɵɵComponentDeclaration<TooltipComponent, "tooltip", never, { "data": "data"; "show": "show"; }, {}, never, never>;
                       ~~~~~~~~~~~~~~~~~~~~~~
node_modules/ng2-tooltip-directive/lib/tooltip.module.d.ts:9:21 - error TS2694: Namespace '"/home/credondocr/workspace/consealed/consealed/packages/client/node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDeclaration'.

9     static ɵfac: i0.ɵɵFactoryDeclaration<TooltipModule, never>;
                      ~~~~~~~~~~~~~~~~~~~~
node_modules/ng2-tooltip-directive/lib/tooltip.module.d.ts:10:21 - error TS2694: Namespace '"/home/credondocr/workspace/consealed/consealed/packages/client/node_modules/@angular/core/core"' has no exported member 'ɵɵNgModuleDeclaration'.

10     static ɵmod: i0.ɵɵNgModuleDeclaration<TooltipModule, [typeof i1.TooltipDirective, typeof i2.TooltipComponent], [typeof i3.CommonModule], [typeof i1.TooltipDirective]>;
                       ~~~~~~~~~~~~~~~~~~~~~
node_modules/ng2-tooltip-directive/lib/tooltip.module.d.ts:11:21 - error TS2694: Namespace '"/home/credondocr/workspace/consealed/consealed/packages/client/node_modules/@angular/core/core"' has no exported member 'ɵɵInjectorDeclaration'.

11     static ɵinj: i0.ɵɵInjectorDeclaration<TooltipModule>;
                       ~~~~~~~~~~~~~~~~~~~~~

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! client@0.1.0 build: `ng build`
npm ERR! Exit status 1

That is breaking the ci and local environment, any suggestion?

drozhzhin-n-e commented 3 years ago

Which version of Angular are you using?

credondocr commented 3 years ago

Angular 9.0.2 Let me show you the package.json

{
   "dependencies":{
      "@angular-material-components/datetime-picker":"^2.0.4",
      "@angular-material-components/moment-adapter":"^4.0.1",
      "@angular/animations":"~9.0.2",
      "@angular/cdk":"^9.1.0",
      "@angular/common":"~9.0.2",
      "@angular/compiler":"~9.0.2",
      "@angular/core":"~9.0.2",
      "@angular/forms":"~9.0.2",
      "@angular/material":"^9.2.4",
      "@angular/platform-browser":"~9.0.2",
      "@angular/platform-browser-dynamic":"~9.0.2",
      "@angular/router":"~9.0.2",
      "@azure/msal-angular":"^1.0.0",
      "@ckeditor/ckeditor5-angular":"^2.0.1",
      "@ckeditor/ckeditor5-build-decoupled-document":"^27.0.0",
      "@iplab/ngx-file-upload":"^2.0.8",
      "@mat-datetimepicker/core":"^6.0.0",
      "@sentry/angular":"^6.6.0",
      "@sentry/browser":"^6.3.6",
      "@sentry/tracing":"^6.6.0",
      "@storybook/addon-docs":"^6.1.9",
      "@types/jquery":"^3.5.5",
      "angular2-text-mask":"^9.0.0",
      "angularx-social-login":"^2.3.0",
      "cookieconsent":"^3.1.1",
      "http-status-codes":"^1.4.0",
      "logrocket":"^1.0.10",
      "moment":"^2.24.0",
      "msal":"^1.3.4",
      "ng2-tooltip-directive":"2.9.22",
      "ng5-slider":"^1.2.6",
      "ngx-captcha":"^9.0.0",
      "ngx-cookieconsent":"^2.2.3",
      "ngx-google-analytics":"^11.2.1",
      "ngx-scrollbar":"^7.3.0",
      "ngx-simplemde":"^10.0.0",
      "rxjs":"~6.5.4",
      "tslib":"^1.10.0",
      "update":"^0.7.4",
      "zone.js":"~0.10.2"
   },
   "devDependencies":{
      "@angular-devkit/build-angular":"^0.1100.1",
      "@angular/cli":"~9.0.3",
      "@angular/compiler-cli":"~9.0.2",
      "@angular/language-service":"~9.0.2",
      "@babel/core":"^7.8.4",
      "@compodoc/compodoc":"^1.1.11",
      "@sentry/cli":"^1.66.0",
      "@storybook/addon-actions":"^6.1.9",
      "@storybook/addon-links":"^6.1.9",
      "@storybook/addon-notes":"^5.3.21",
      "@storybook/addons":"^6.1.9",
      "@storybook/angular":"^6.1.9",
      "@types/file-saver":"^2.0.1",
      "@types/jasmine":"~3.5.0",
      "@types/jasminewd2":"~2.0.3",
      "@types/node":"^12.20.12",
      "babel-loader":"^8.0.6",
      "codelyzer":"^5.1.2",
      "jasmine-core":"~3.5.0",
      "jasmine-spec-reporter":"~4.2.1",
      "karma":"^5.2.2",
      "karma-chrome-launcher":"~3.1.0",
      "karma-coverage-istanbul-reporter":"~2.1.0",
      "karma-jasmine":"~2.0.1",
      "karma-jasmine-html-reporter":"^1.4.2",
      "protractor":"^7.0.0",
      "ts-node":"~8.3.0",
      "tslint":"~5.18.0",
      "typescript":"~3.7.5"
   }
}
albernaz commented 3 years ago

Same here, using:
"@angular/common": "^11.2.14", "@angular/core": "^11.2.14",

sraza295 commented 3 years ago

@credondocr Dude, use this version. "ng2-tooltip-directive": "^2.9.22", I also solved it by using this version.

ghost commented 3 years ago

I am using "ng2-tooltip-directive": "^2.9.22", its giving me same error with "@angular/compiler": "~11.1.1", "@angular/core": "~11.1.1",

aswathkk commented 3 years ago

I'm using Angular 9.1.3 I was able to resolve this by using:

"ng2-tooltip-directive": "~2.9.22"
sraza295 commented 3 years ago

@ashishdch delete package-lock.json and then "npm install"

daxoRRR commented 3 years ago

I am using "ng2-tooltip-directive": "^2.10.3" "@angular/compiler": "~11.0.2", "@angular/core": "~11.0.2"

it's giving me the same error. I need the version 2.10.3 of ng2 tooltip directive because there is a fix I need on my project.

Is there a fix ?

atif-rehman-ideofuzion commented 1 year ago

Same issue with

"dependencies": {
    "@angular-redux/router": "^10.0.0",
    "@angular-redux/store": "^10.0.0",
    "@angular/animations": "~9.1.1",
    "@angular/cdk": "^9.2.4",
    "@angular/common": "~9.1.1",
    "@angular/compiler": "~9.1.1",
    "@angular/core": "~9.1.1",
    "@angular/flex-layout": "^9.0.0-beta.31",
    "@angular/forms": "~9.1.1",
    "@angular/http": "^7.2.16",
    "@angular/localize": "^10.0.2",
    "@angular/material": "^9.2.4",
    "@angular/platform-browser": "~9.1.1",
    "@angular/platform-browser-dynamic": "~9.1.1",
    "@angular/router": "~9.1.1",
    "@ingenmaffen/ngx-treeview": "^9.1.1",
    "@metamask/detect-provider": "^1.1.0",
    "@ng-bootstrap/ng-bootstrap": "^6.1.0",
    "@passbase/button": "^4.0.2",
    "@stripe/stripe-js": "^1.29.0",
    "@swimlane/ngx-datatable": "^17.0.0",
    "@types/react": "^17.0.22",
    "angular-tree-component": "^8.5.6",
    "assert": "^2.0.0",
    "big-number": "^2.0.0",
    "crypto-browserify": "^3.12.0",
    "crypto-js": "^4.1.1",
    "html-to-image": "^1.3.21",
    "html2canvas": "^1.0.0-rc.7",
    "html2pdf.js": "^0.9.0",
    "http": "0.0.1-security",
    "https-browserify": "^1.0.0",
    "jquery": "^3.6.0",
    "jspdf": "^2.3.1",
    "moment": "^2.29.3",
    "ng-multiselect-dropdown": "^0.2.10",
    "ng2-tooltip-directive": "2.10.3",
    "ngx-cookie-service": "^10.0.1",
    "ngx-countdown": "10.0.0",
    "ngx-doc-viewer": "^1.2.1",
    "ngx-dropzone": "^2.5.0",
    "ngx-infinite-scroll": "^9.0.0",
    "ngx-pagination": "^5.0.0",
    "ngx-toastr": "^13.2.0",
    "os-browserify": "^0.3.0",
    "react-dom": "^16.13.0",
    "redux": "^4.0.5",
    "rxjs": "^6.5.5",
    "socket.io-client": "2.2.0",
    "stream-browserify": "^3.0.0",
    "stream-http": "^3.2.0",
    "sweetalert2": "^9.14.4",
    "web3": "^1.2.11",
    "zone.js": "~0.10.2"
  },
omprakash-sit commented 1 year ago

I having similar issue

**Error: node_modules/@angular/cdk/accordion/index.d.ts:40:18 - error TS2707: Generic type 'ɵɵDirectiveDeclaration' requires between 6 and 8 type arguments.

40 static ɵdir: i0.ɵɵDirectiveDeclaration<CdkAccordion, "cdk-accordion, [cdkAccordion]", ["cdkAccordion"], { "multi": "multi"; }, {}, never, never, false, never>;**

my package.json look like

 "dependencies": {
"@angular/animations": "^15.0.3",
"@angular/cdk": "^15.0.2",
"@angular/common": "14.2.0",
"@angular/compiler": "14.2.0",
"@angular/core": "14.2.0",
"@angular/forms": "14.2.0",
"@angular/localize": "14.2.0",
"@angular/material": "^14.2.7",
"@angular/platform-browser": "14.2.0",
"@angular/platform-browser-dynamic": "14.2.0",
"@angular/router": "14.2.0",
"@fortawesome/angular-fontawesome": "0.11.1",
"@fortawesome/fontawesome-svg-core": "6.2.0",
"@fortawesome/free-solid-svg-icons": "6.2.0",
"@ng-bootstrap/ng-bootstrap": "13.0.0",
"@ngx-translate/core": "14.0.0",
"@ngx-translate/http-loader": "7.0.0",
"@popperjs/core": "2.11.6",
"bootstrap": "5.2.0",
"dayjs": "1.11.5",
"jquery": "^3.6.2",
"ngx-infinite-scroll": "14.0.0",
"ngx-webstorage": "10.0.1",
"rxjs": "7.5.6",
"tslib": "2.4.0",
"zone.js": "0.11.6"
 },