커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
4주 [코드스니펫] DetailPage.js에서 넘겨받은 idx 팁 상세 데이터 조회 에서 오류
[왕초보] 나만의 수익성 앱, 앱개발 종합반 v5
4주차
북마크
김*오
댓글
3
추천
0
조회수
9
조회수
9
답변 완료

* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.

* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.


[코드스니펫] DetailPage.js에서 넘겨받은 idx 팁 상세 데이터 조회

여기서 오류가 발생합니다



// Import the functions you need from the SDKs you need

import { initializeApp } from "firebase/app";

import { getAnalytics } from "firebase/analytics";

// TODO: Add SDKs for Firebase products that you want to use

// https://firebase.google.com/docs/web/setup#available-libraries


// Your web app's Firebase configuration

// For Firebase JS SDK v7.20.0 and later, measurementId is optional

const firebaseConfig = {

  apiKey: "AIzaSyAuTAsYmd4pS35YwqIxMZdZK1TTa2gOLGI",

  authDomain: "myggultip-5f38f.firebaseapp.com",

  databaseURL: "https://myggultip-5f38f-default-rtdb.firebaseio.com",

  projectId: "myggultip-5f38f",

  storageBucket: "myggultip-5f38f.appspot.com",

  messagingSenderId: "102152569045",

  appId: "1:102152569045:web:c58e7b8000c81a5e73e25c",

  measurementId: "G-BTRS9M7ZSW"

};


// Initialize Firebase

const app = initializeApp(firebaseConfig);

const analytics = getAnalytics(app);


스파르타 즉문즉답



작성한 코드 및 에러 메세지

ERROR in ./pages/DetailPage.js:4

Module not found: Can't resolve '../firebaseConfig'  

 2 | import { StyleSheet, Text, View, Image, ScrollView,TouchableOpacity,Alert,Share } from 'react-native';

 3 | import * as Linking from 'expo-linking';     

> 4 | import {firebase_db} from "../firebaseConfig"  

 5 |

 6 | export default function DetailPage({navigation,route}) {

 7 |


web compiled with 1 error  



취소
 공유
취소
댓글 0
댓글 알림
나의얼굴