We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
import admin from "firebase-admin";
// rest of the code
Once I run tsc I am getting following error:
tsc
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?
The text was updated successfully, but these errors were encountered:
Hmmm this issue does not seem to follow the issue template. Make sure you provide all the required information.
Sorry, something went wrong.
Hey there! I couldn't figure out what this issue is about, so I've labeled it for a human to triage. Hang tight.
OK I had to use
import * as admin from "firebase-admin";
as mentioned at microsoft/TypeScript#3337
No branches or pull requests
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:Is there any way to avoid the error?
The text was updated successfully, but these errors were encountered: