inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

신웅식님의 게시글

신웅식 신웅식

@airwoong830572

수강평 작성수
-
평균평점
-

게시글 1

질문&답변

_firebase__WEBPACK_IMPORTED_MODULE_4__.default.auth is not a function

이렇게 시도해 보시면 좋을것 같습니다. firebase.js import { initializeApp } from "firebase/app"; import { getAuth } from 'firebase/auth'; ...동일 const firebaseApp = initializeApp(firebaseConfig); export const auth = getAuth(firebaseApp); export default firebaseApp; RegisterPage.js import { createUserWithEmailAndPassword, getAuth } from 'firebase/auth'; import auth from '../../firebase'; let userCredential = await createUserWithEmailAndPassword(auth, data.email, data.password); // 만약 여전히 에러가 난다면 // createUserWithEmailAndPassword(getAuth(), data.email, data.password);로 시도해 보세요

좋아요수
1
댓글수
3
조회수
483