auth0-samples / auth0-ionic2-samples

MIT License
28 stars 56 forks source link

Angular 4 compatibility issue #17

Open shibulijack opened 7 years ago

shibulijack commented 7 years ago

package.json:

"dependencies": {
    "@angular/common": "4.0.2",
    "@angular/compiler": "4.0.2",
    "@angular/compiler-cli": "4.0.2",
    "@angular/core": "4.0.2",
    "@angular/forms": "4.0.2",
    "@angular/http": "4.0.2",
    "@angular/platform-browser": "4.0.2",
    "@angular/platform-browser-dynamic": "4.0.2",
    "@ionic-native/core": "3.4.2",
    "@ionic-native/splash-screen": "3.4.2",
    "@ionic-native/status-bar": "3.4.2",
    "@ionic/storage": "2.0.1",
    "angular2-jwt": "0.1.27",
    "auth0-js": "7.4.0",
    "auth0-lock": "10.13.0",
    "ionic-angular": "3.1.1",
    "ionicons": "3.0.0",
    "rxjs": "5.1.1",
    "sw-toolbox": "3.4.0",
    "zone.js": "^0.8.5"
  },

Throws the following error for the above setup: Uncaught Error: Cannot find module "auth0-js/plugins/cordova"

Tried upgrading auth0-js to the latest version, but ended up in further errors such as auth0_js___default.a is not a constructor

What versions should I use for auth0-js, auth0-lock and angular2-jwt to work properly?