[FireBase]undefined is not an object (evaluating 'firebase.apps.length') 오류

 파이어베이스 라이브러리의 버전이 업데이트 되면서 import 의 사용법이 달라짐. firebaseConfig.js 파일에서,

import * as firebase from 'firebase/app'; 를
import firebase from 'firebase/app'; 로 바꿔주면 해결~!!!

++++++

The usage of import changes as the version of the Firebase library is updated.
import * as firebase from 'firebase/app'; -----> import firebase from 'firebase/app';

댓글

이 블로그의 인기 게시물

[R studio] pkg 설치 오류시 대처법

[Apple Developer 조치 필요: Distribution 인증서가 30일 후에 만료됨] 메일이 왔을때 대처법

[Unable to find bundled Java version =>Mac Flutter Android Studio Arctic Fox 2020.3.1] flutter doctor -v 실행시 안드로이드 스튜디오 오류 메시지 해결