Q:

Firebase error v8.9.2 - TypeError: instance.INTERNAL.registerComponent is not a function at register Database

I am getting the above error with the following code. Anybody come across this before? I've removed the DB name for posting the question? 
var admin = require("firebase-admin");
var serviceAccount = require("../firebaseprivatekey.json");

var app = admin.initializeApp({
  credential: admin.credential.cert(serviceAccount),
  databaseURL: "https://DBNAMEHERE.firebaseio.com"
});

var db = admin.database();

A:

npm install @firebase/app --save

Fix my problem as mentioned https://github.com/firebase/firebase-admin-node/issues/722#issuecomment-567427306

