question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
samtsterncommented, May 8, 2020

@mrgrauel 8.12.1 has been released with a fix for this issue.

0reactions
mrgrauelcommented, May 8, 2020

Are you going to release a bug fix update?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found