Skip to content

Conflicting Types for @types/node when using node 14 #1121

@jeffrey-dot-li

Description

@jeffrey-dot-li

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: [email protected]
  • 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/[email protected], 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",

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions