Type issue in 8.12 conflicts with firebase-functions
See original GitHub issue[READ] Step 1: Are you in the right place?
👍
[REQUIRED] Step 2: Describe your environment
- Operating System version: all
- Firebase SDK version: 8.12
- Firebase Product: auth
- Node.js version: 8/10
- NPM version: all
[REQUIRED] Step 3: Describe the problem
When upgrading to 8.12
from 8.11
my build failed with:
##[error]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'.
The relevant line in firebase-functions is here: https://github.com/firebase/firebase-functions/blob/87e75d717d5acf32d893e867078c531542d30c69/src/providers/auth.ts#L55
It seems that lastRefreshTime
was added here:
https://github.com/firebase/firebase-admin-node/pull/726
Maybe it should be optional not string | null
Steps to reproduce:
https://github.com/firebase/snippets-node/pull/105
Relevant Code:
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
[2022][Solved] Conflicting peer dependency: firebase ...
If you have arrived at this article, you are probably having trouble with the following error when deploying in Cloud Functions.
Read more >Firebase JavaScript SDK Release Notes - Google
Fixed issue where clients using Node.js v18 would use the native Blob object, ... Updated FunctionsErrorCode type to include "functions/" prefix.
Read more >Firebase functions issue when using res - node.js
The issue was that I was using the return statement before anytime I was using res . By removing the return keywords the...
Read more >Troubleshooting Cloud Functions - Google Cloud
This document shows you some of the common problems you might run into and how ... This role is required for Cloud Pub/Sub,...
Read more >When Your Firebase Cloud Functions Don't Want to Deploy ...
Guided by this StackOverflow question, I fixed the issue by setting my local and Cloud Functions Node.js version to 12. Why did this...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@mrgrauel
8.12.1
has been released with a fix for this issue.Are you going to release a bug fix update?