You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When initialising firebase admin with standard downloaded service account json, typescript error incompatible types when "resolveJsonModule": true, in compiler
Relevant Code:
import * as admin from 'firebase-admin';
import * as serviceAccount from "path/to/serviceAccountKey.json";
admin.initializeApp({
credential: admin.credential.cert(serviceAccount), // <---- type error here
databaseURL: "https://<DATABASE>.firebaseio.com"
});
Describe your environment
Describe the problem
When initialising firebase admin with standard downloaded service account json, typescript error incompatible types when
"resolveJsonModule": true,
in compilerRelevant Code:
tsconfig.json
The text was updated successfully, but these errors were encountered: