baumblatt / capacitor-firebase-auth

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

Getting build error after adding capacitor-firebase-auth #135

Open kunjee17 opened 3 years ago

kunjee17 commented 3 years ago

There is not build issue in code. But I m getting this kind of build error from the library.

Module '"../../../firebase"' has no exported member 'User'. Did you mean to use 'import User from "../../../firebase"' instead?

1 import { User, UserInfo } from 'firebase/app';

here is my tsconfig.json

/* To learn more about this file see: https://angular.io/config/tsconfig. */
{
  "compileOnSave": false,
  "compilerOptions": {
    "baseUrl": "./",
    "outDir": "./dist/out-tsc",
    "forceConsistentCasingInFileNames": true,
    "strict": true,
    "esModuleInterop": true,
    "noImplicitReturns": true,
    "noFallthroughCasesInSwitch": true,
    "sourceMap": true,
    "declaration": false,
    "downlevelIteration": true,
    "experimentalDecorators": true,
    "moduleResolution": "node",
    "importHelpers": true,
    "target": "es2015",
    "module": "es2020",
    "lib": [
      "es2018",
      "dom"
    ]
  },
  "angularCompilerOptions": {
    "strictInjectionParameters": true,
    "strictInputAccessModifiers": true,
    "strictTemplates": true
  }
}

Let me know if any other details are required. I did try to follow read me step by step. But some how build is not working now.

gentlemanjohn commented 3 years ago

I'm getting this as well with 2.3.5

kunjee17 commented 3 years ago

I did find out the solution. there is on next version deploy which works with latest firebase. Here is the future version. It should solve the build issue.

I haven't tested it with mobile yet. Once that is done I ll close this issue.

abilbaotm commented 3 years ago

Having same issue with capacitor-firebase-auth version 2.3.5. Updated to version 2.4.0-alpha.0 in package.json and fixed in Web. 🤟