I am new to firebase. https://www.npmjs.com/package/firebase. npm install in my angular8& ionic4 package for performance monitoring and analytics. some module getting error. I couldn't solve my problem.
Error:-
index.cjs.js:638 Uncaught FirebaseError: Firebase: No Firebase App '[DEFAULT]' has been created - call Firebase App.initializeApp() (app/no-app).
at app (http://192.168.43.123:8100/vendor.js:86420:33)
at Object.serviceNamespace [as performance] (http://192.168.43.123:8100/vendor.js:86471:51)
at Module../src/app/pages/wcsm/wcsm.page.ts (http://192.168.43.123:8100/main.js:12917:69)
at __webpack_require__ (http://192.168.43.123:8100/runtime.js:85:30)
at Module../src/app/components/popup/popup.component.ts (http://192.168.43.123:8100/main.js:8795:80)
at __webpack_require__ (http://192.168.43.123:8100/runtime.js:85:30)
at Module../src/app/app.component.ts (http://192.168.43.123:8100/main.js:1284:105)
at __webpack_require__ (http://192.168.43.123:8100/runtime.js:85:30)
at Module../src/app/app.module.ts (http://192.168.43.123:8100/main.js:1808:72)
at __webpack_require__ (http://192.168.43.123:8100/runtime.js:85:30)
app.modules.ts
import * as firebase from 'firebase/app';
import 'firebase/analytics';
import 'firebase/performance';
import { firebaseConfig } from './firebase-config';
firebase.initializeApp(firebaseConfig);
const analytics= firebase.analytics();
const perf = firebase.performance();