baumblatt / capacitor-firebase-auth

Capacitor Firebase Authentication Plugin
MIT License
261 stars 129 forks source link

CapConfig getConfig() incompatible return type #165

Open alkahtani opened 3 years ago

alkahtani commented 3 years ago

I am having trouble to build my ionic project , i am getting this error as you can see in the attachment

Screen Shot 2021-05-21 at 10 27 13 PM

ionic info `Ionic:

Ionic CLI : 5.4.16 (/usr/local/lib/node_modules/ionic) Ionic Framework : @ionic/angular 5.0.0 @angular-devkit/build-angular : 0.803.25 @angular-devkit/schematics : 8.2.2 @angular/cli : 8.3.25 @ionic/angular-toolkit : 2.1.2

Capacitor:

Capacitor CLI : 2.4.7 @capacitor/core : 2.4.7

Cordova:

Cordova CLI : 9.0.0 (cordova-lib@9.0.1) Cordova Platforms : none Cordova Plugins : no whitelisted plugins (0 plugins total)

Utility:

cordova-res : 0.15.3 native-run : not installed

System:

NodeJS : v12.14.1 (/usr/local/bin/node) npm : 6.13.7 OS : macOS`

, please help what i should do.

tgangso commented 3 years ago

I get the same issue after upgrading to capacitor v3

moranil commented 3 years ago

The new code is not yet released but you can install updated code using the direct link

npm i --save git+https://github.com/baumblatt/capacitor-firebase-auth.git#next

tgangso commented 3 years ago

Thanks, will give it a shot!

moranil commented 3 years ago

Found this also

npm i capacitor-firebase-auth@3.0.0-rc.0

Package.json

"dependencies": { "@angular/common": "~11.2.11", "@angular/core": "~11.2.11", "@angular/forms": "~11.2.11", "@angular/platform-browser": "~11.2.11", "@angular/platform-browser-dynamic": "~11.2.11", "@angular/router": "~11.2.11", "@capacitor/android": "^3.0.0", "@capacitor/core": "^3.0.0", "@capacitor/splash-screen": "1.0.0", "@ionic/angular": "^5.6.8", "capacitor-firebase-auth": "^3.0.0-rc.0", "rxjs": "~6.6.0", "tslib": "^2.0.0", "zone.js": "~0.10.2" }, "devDependencies": { "@angular-devkit/build-angular": "~0.1102.4", "@angular-eslint/builder": "2.0.2", "@angular-eslint/eslint-plugin": "2.0.2", "@angular-eslint/eslint-plugin-template": "2.0.2", "@angular-eslint/template-parser": "2.0.2", "@angular/cli": "~11.2.4", "@angular/compiler": "~11.2.11", "@angular/compiler-cli": "~11.2.11", "@angular/language-service": "~11.2.11", "@capacitor/cli": "^3.0.0", "@ionic/angular-toolkit": "^3.1.1", "@types/jasmine": "~3.6.0", "@types/jasminewd2": "~2.0.3", "@types/node": "^12.11.1", "@typescript-eslint/eslint-plugin": "4.16.1", "@typescript-eslint/parser": "4.16.1", "eslint": "^7.6.0", "eslint-plugin-import": "2.22.1", "eslint-plugin-jsdoc": "30.7.6", "eslint-plugin-prefer-arrow": "1.2.2", "jasmine-core": "~3.6.0", "jasmine-spec-reporter": "~5.0.0", "karma": "~5.2.0", "karma-chrome-launcher": "~3.1.0", "karma-coverage": "~2.0.3", "karma-coverage-istanbul-reporter": "~3.0.2", "karma-jasmine": "~4.0.0", "karma-jasmine-html-reporter": "^1.5.0", "protractor": "~7.0.0", "ts-node": "~8.3.0", "typescript": "~4.0.2" },

moranil commented 3 years ago

Looks like it is dependent on cap 3.0.0 rc-4 can you update it to the release?

I am already using the cap 3.0

This is the first time I am using the plugin, Code error got fixed, but google auth not yet tested