Repository: auth0/angular2-jwt

Issue #750: Getting an issue of no exported member from angular core
Created: 2022-11-12T16:35:22Z
Description

I'm facing an issue when trying to run an angular project that has angular2-jwt (^5.0.2)

Reproduction
Running with ng s --port 4300 --open

Environment
node: 14.20.1
npm: 6.14.17

 "dependencies": {
    "@angular/animations": "10.1.0",
    "@angular/common": "10.1.0",
    "@angular/compiler": "10.1.0",
    "@angular/core": "10.1.0",
    "@angular/forms": "10.1.0",
    "@angular/localize": "^10.2.5",
    "@angular/platform-browser": "10.1.0",
    "@angular/platform-browser-dynamic": "10.1.0",
    "@angular/router": "10.1.0",
    "@auth0/angular-jwt": "^5.0.2",
    "@ng-bootstrap/ng-bootstrap": "^7.0.0",
    "@swimlane/ngx-datatable": "^19.0.0",
    "@types/gapi": "0.0.39",
    "@types/gapi.auth2": "0.0.53",
    "angular-calendar": "0.28.16",
    "angular-in-memory-web-api": "0.11.0",
    "angular2-ladda": "3.1.0",
    "angular2-text-mask": "9.0.0",
    "angularx-social-login": "^3.5.7",
    "bootstrap": "^4.6.1",
    "classlist.js": "1.1.20150312",
    "core-js": "3.6.4",
    "date-fns": "2.10.0",
    "echarts": "4.6.0",
    "feather-icons": "4.7.3",
    "highlight.js": "11.3.1",
    "ladda": "2.0.1",
    "moment": "^2.29.1",
    "ngx-chips": "2.1.0",
    "ngx-color-picker": "9.0.0",
    "ngx-custom-validators": "^9.1.0",
    "ngx-echarts": "4.2.2",
    "ngx-img-cropper": "10.0.0",
    "ngx-pagination": "5.0.0",
    "ngx-perfect-scrollbar": "10.0.1",
    "ngx-quill": "12.0.1",
    "ngx-toastr": "13.0.0",
    "popper.js": "1.14.4",
    "quill": "^1.3.7",
    "rxjs": "~6.5.4",
    "tslib": "^2.3.1",
    "web-animations-js": "^2.3.2",
    "zone.js": "~0.10.3"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "^0.1100.5",
    "@angular/cli": "~10.1.0",
    "@angular/compiler-cli": "10.1.0",
    "@angular/language-service": "10.1.0",
    "@types/jasmine": "^2.8.18",
    "@types/jasminewd2": "^2.0.10",
    "@types/node": "^12.20.41",
    "codelyzer": "^5.1.2",
    "jasmine-core": "~3.5.0",
    "jasmine-spec-reporter": "~5.0.0",
    "karma": "~5.0.0",
    "karma-chrome-launcher": "~3.1.0",
    "karma-coverage-istanbul-reporter": "~3.0.2",
    "karma-jasmine": "~4.0.0",
    "karma-jasmine-html-reporter": "^1.7.0",
    "node-sass": "^4.12.0",
    "protractor": "~7.0.0",
    "ts-node": "~7.0.0",
    "tslint": "~6.1.0",
    "typescript": "3.9.5"
  }

Duplicate issue #762: 'ɵɵngDeclareFactory' (imported as 'i0') was not found in '@angular/core'
Created: 2023-01-10T11:27:13Z
We are trying to upgrade our application from Angular 9 to 11, After upgrade, we unable to compile, we are facing the below issue,
Error: ./node_modules/@auth0/angular-jwt/fesm2015/auth0-angular-jwt.js 426:17-39
"export 'ɵɵngDeclareNgModule' (imported as 'i0') was not found in '@angular/core'



We tried below steps to resolve this issue, but none worked.

Removed entire node modules and reinstalled.
Reinstalled tslib higher version and lower version both didn't worked.
Uninstalled the @angular/cli and @angular/core and reinstalled, none worked.
Downloaded this repository and analyzed the code "import as i0" found nowhere in this repo.

Please help us on this issue, Is there any specific steps we are missing?.

Closing comment (2023-01-10T11:51:10Z): Possible duplicate of #750
Anything as of 5.1 of our SDK only supports Angular 12 and above, so ensure you do not update our SDK to 5.1.0, but stick to 5.0.x if you need to work with Angular 11 or lower.