michaelbromley / ngx-pagination

Pagination for Angular
http://michaelbromley.github.io/ngx-pagination/
MIT License
1.22k stars 244 forks source link

Error with IVI Compiler #342

Open Master-Antonio opened 4 years ago

Master-Antonio commented 4 years ago

Hello , until i wasn't using IVI Compiler all work good. Now i tried with new IVI Compiler and build don't work. Angular return me this error:

ERROR in Assertion error: failed to find directive with exportAs: paginationApi

This is my package.json

"dependencies": {
    "@angular/animations": "~8.2.9",
    "@angular/common": "~8.2.9",
    "@angular/compiler": "~8.2.9",
    "@angular/core": "~8.2.9",
    "@angular/forms": "~8.2.9",
    "@angular/platform-browser": "~8.2.9",
    "@angular/platform-browser-dynamic": "~8.2.9",
    "@angular/router": "~8.2.9",
    "bootstrap": "^4.3.1",
    "file-saver": "^2.0.2",
    "font-awesome": "^4.7.0",
    "ng2-search-filter": "^0.5.1",
    "ngx-bootstrap": "^5.1.2",
    "ngx-filter-pipe": "^2.1.2",
    "ngx-order-pipe": "^2.0.4",
    "ngx-pagination": "^4.1.0",
    "ngx-popper": "^7.0.0",
    "ngx-toastr": "^11.1.0",
    "popper.js": "^1.15.0",
    "rxjs": "~6.4.0",
    "tslib": "^1.10.0",
    "xlsx": "^0.15.1",
    "zone.js": "~0.9.1"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "~0.803.6",
    "@angular/cli": "~8.3.7",
    "@angular/compiler-cli": "~8.2.9",
    "@angular/language-service": "~8.2.9",
    "@types/node": "~8.9.4",
    "@types/jasmine": "~3.3.8",
    "@types/jasminewd2": "~2.0.3",
    "codelyzer": "^5.0.0",
    "jasmine-core": "~3.4.0",
    "jasmine-spec-reporter": "~4.2.1",
    "karma": "~4.1.0",
    "karma-chrome-launcher": "~2.2.0",
    "karma-coverage-istanbul-reporter": "~2.0.1",
    "karma-jasmine": "~2.0.1",
    "karma-jasmine-html-reporter": "^1.4.0",
    "protractor": "~5.4.0",
    "ts-node": "~7.0.0",
    "tslint": "~5.15.0",
    "typescript": "~3.5.3"
  }

Can i fix this problem? How? Or need a update of ngx-pagination?

Thanks a lot.

michaelbromley commented 4 years ago

Hi, there is a related issue here: https://github.com/michaelbromley/ngx-pagination/issues/312

Please try with the latest RC of Angular 9 - apparently it is fixed there.