Skip to content

firebase-admin 5.12.0 fails to compile with tsc #252

Closed
@ndkcha

Description

@ndkcha

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

  • For issues or feature requests related to the code in this repository
    file a Github issue.

[REQUIRED] Step 2: Describe your environment

  • Operating System version: OSX 10.11.3
  • Firebase SDK version: 5.12.0
  • Library version: _____
  • Firebase Product: firebase-admin for node.js (auth, database, storage, etc)

[REQUIRED] Step 3: Describe the problem

Steps to reproduce:

What happened? How can we make the problem occur?

I'm using typescript environment to code the server on Node.js
When I compile the code, it's returning with an error:

> rimraf dist && tsc --outDir dist

node_modules/firebase-admin/lib/index.d.ts(18,22): error TS7016: Could not find a declaration file for module '@google-cloud/storage'. '/<path-to-project>/node_modules/@google-cloud/storage/src/index.js' implicitly has an 'any' type.
npm ERR! code ELIFECYCLE
npm ERR! errno 2

I have the upgraded firebase-admin to the latest version (5.12.0)

"firebase-admin": "^5.12.0",

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions