sajTempler / IonicFirebasePhoneAuth

13 stars 8 forks source link

mock.ts:3 Uncaught TypeError: Class extends value [object Object] is not a constructor or null #5

Open gabmueller opened 4 years ago

gabmueller commented 4 years ago

Hi,

I was planning to test your implementation by adding the relevant code snippets to my app.

  1. Copied your mock.ts and mock.providers.ts
  2. Added the FirebaseProvider and the other imports to my app.module.ts

3.1 VS code error: "Type 'FirebaseOriginal' is not a constructor function type." concerning line 3 in your mock.ts, i.e.

export class FirebaseMock extends Firebase {

3.2 "Console error" using Chrome: Uncaught TypeError: Class extends value [object Object] is not a constructor or null at Module../src/mock.ts (mock.ts:3)

  1. Added /ngx to the Firebase imports -> that resolved the VS code error but the "console error" remained.

I've got the following configuration:

Ionic CLI: 6.11.10 Ionic Framework: @ionic/angular 5.3.4 Cordova CLI: 10.0.0

Could you please help? I would really appreciate as you are one of very few (if not the only) one who provided a full implementation of IonicFirebasePhoneAuth working on iOS and Android.

sajTempler commented 4 years ago

Hey @Gab309

Thanks for opening the issue. I'll update the repository later this week so it will be using latest versions 🚀

Cheers

gabmueller commented 4 years ago

How is it going? @sajTempler

sajTempler commented 4 years ago

@Gab309 hey I didn't have time to complete - heads up for the updates I'll do what I can