firebase-admin-node: Conflicting Types for @types/node when using node 14

Thank you for submitting your issue. We are operating at reduced capacity from Dec 18 2020 to Jan 4 2021. Please expect delayed responses. For more urgent requests please reach us via our support channels https://firebase.google.com/support

[READ] Step 1: Are you in the right place?

  • For issues related to the code in this repository file a Github issue.
  • If the issue pertains to Cloud Firestore, read the instructions in the “Firestore issue” template.
  • For general technical questions, post a question on StackOverflow with the firebase tag.
  • For general Firebase discussion, use the firebase-talk google group.
  • For help troubleshooting your application that does not fall under one of the above categories, reach out to the personalized Firebase support channel.

[REQUIRED] Step 2: Describe your environment

  • Operating System version: Windows
  • Firebase SDK version: firebase-admin@9.4.2
  • Firebase Product: firebase-admin
  • Node.js version: 14.2.0
  • NPM version: 6.14.4

[REQUIRED] Step 3: Describe the problem

When using node 14 with typescript’s @types/node@14.14.16, attempting to compile with tsc gives a conflicting definition of ‘node’ error: image

I need to use node 14 because something in fs-extra is broken in node 12.

Steps to reproduce:

  1. Upgraded node version to node 14
  2. Upgraded node types to @types/node@latest to fix fs-extra error in node 12
  3. Ran tsc - got the conflicting node error

Relevant Code:

  "dependencies": {
    "@types/node": "^14.14.16",
...
    "firebase-admin": "^9.4.2",

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 2
  • Comments: 15 (9 by maintainers)

Commits related to this issue

Most upvoted comments

I was also having this issue, but I only needed to downgrade to 9.3.0 to resolve it, not all the way to 9.0.0.