Skip to content

Typescript (tsc) firebase-admin has no default export #287

Closed
@reyou

Description

@reyou
firebase --version
3.18.4
"firebase-admin": "^5.12.0",
"firebase-functions": "^1.0.2",
"firebase-tools": "^3.18.4",
tsc --version
Version 2.8.3

In my firebase project I have a file with following import;

file.ts

import admin from "firebase-admin";
// rest of the code

Once I run tsc I am getting following error:

  • Starting compilation in watch mode...
    functions/file.ts(1,8): error TS1192: Module '"/node_modules/firebase-admin/lib/index"' has no default export.

Is there any way to avoid the error?

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