firebase-functions: Class 'UserRecordMetadata' incorrectly implements interface 'UserMetadata'.
Related issues
None that I know of.
[REQUIRED] Version info
node:
v14.1.0
firebase-functions:
3.6.1
firebase-tools:
8.2.0
[REQUIRED] Test case
tsc
[REQUIRED] Steps to reproduce
Just compiling my app with latest version.
[REQUIRED] Expected behavior
No error.
[REQUIRED] Actual behavior
node_modules/firebase-functions/lib/providers/auth.d.ts:14:22 - error TS2420: Class 'UserRecordMetadata' incorrectly implements interface 'UserMetadata'.
Property 'lastRefreshTime' is missing in type 'UserRecordMetadata' but required in type 'UserMetadata'.
14 export declare class UserRecordMetadata implements firebase.auth.UserMetadata {
~~~~~~~~~~~~~~~~~~
node_modules/firebase-admin/lib/auth.d.ts:28:5
28 lastRefreshTime: string|null;
~~~~~~~~~~~~~~~
'lastRefreshTime' is declared here.
Were you able to successfully deploy your functions?
tsconfig.json:
"skipLibCheck": true,
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 42
- Comments: 25
Commits related to this issue
- Add compiler option to avoid https://github.com/firebase/firebase-functions/issues/681 error — committed to elevu/dna-matcher by deleted user 4 years ago
This is literally been the cause of headache for me for the past day or so. Everything works with versions:
but the moment I upgrade to the latest versions:
errors like these appear:
This is very infuriating 😦
found the issue: “firebase-functions”: “3.6.1” requires “firebase-admin”: “8.11.0”, by default is installing the version ‘8.12.0’.
I just tried with latest dependencies (new firebase version) and skipLibCheck works fine.