커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
4-6 파이어베이스 ㅡ MainPage.js 코드스니펫 후 오류발생
[왕초보] 나만의 수익성 앱, 앱개발 종합반
4주차
북마크
임*희
댓글
4
추천
2
조회수
21
조회수
21
답변 완료

While trying to resolve module `idb` from file `C:\Users\artmi\Desktop\sparta-study\sparta-myhoneytip-sun\node_modules\@firebase\app\dist\esm\index.esm2017.js`, the package `C:\Users\artmi\Desktop\sparta-study\sparta-myhoneytip-sun\node_modules\idb\package.json` was successfully found. However, this package itself specifies a `main` module field that could not be resolved (`C:\Users\artmi\Desktop\sparta-study\sparta-myhoneytip-sun\node_modules\idb\build\index.cjs`. Indeed, none of these files exist:


 * C:\Users\artmi\Desktop\sparta-study\sparta-myhoneytip-sun\node_modules\idb\build\index.cjs(.native|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx|.android.js|.native.js|.js|.android.jsx|.native.jsx|.jsx|.android.json|.native.json|.json)

 * C:\Users\artmi\Desktop\sparta-study\sparta-myhoneytip-sun\node_modules\idb\build\index.cjs\index(.native|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx|.android.js|.native.js|.js|.android.jsx|.native.jsx|.jsx|.android.json|.native.json|.json)     


InternalError Metro has encountered an error: While trying to resolve module `idb` from 

file `C:\Users\artmi\Desktop\sparta-study\sparta-myhoneytip-sun\node_modules\@firebase\app\dist\esm\index.esm2017.js`, the package `C:\Users\artmi\Desktop\sparta-study\sparta-myhoneytip-sun\node_modules\idb\package.json` was successfully found. However, this package itself specifies a `main` module field that could not be resolved (`C:\Users\artmi\Desktop\sparta-study\sparta-myhoneytip-sun\node_modules\idb\build\index.cjs`. Indeed, none of these files exist:


 * C:\Users\artmi\Desktop\sparta-study\sparta-myhoneytip-sun\node_modules\idb\build\index.cjs(.native|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx|.android.js|.native.js|.js|.android.jsx|.native.jsx|.jsx|.android.json|.native.json|.json)

 * C:\Users\artmi\Desktop\sparta-study\sparta-myhoneytip-sun\node_modules\idb\build\index.cjs\index(.native|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx|.android.js|.native.js|.js|.android.jsx|.native.jsx|.jsx|.android.json|.native.json|.json): C:\Users\artmi\Desktop\sparta-study\sparta-myhoneytip-sun\node_modules\metro\src\node-haste\DependencyGraph.js (243:17)


 241 |

 242 |     if (error instanceof InvalidPackageError) {

> 243 |      throw new PackageResolutionError({

   |         ^

 244 |       packageError: error,   

 245 |       originModulePath: from, 

 246 |       targetModuleName: to,  

at http://172.30.1.18:19000/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&hot=false&strict=false&minify=false:null in showCompileError

at http://172.30.1.18:19000/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&hot=false&strict=false&minify=false:null in <unknown>

at http://172.30.1.18:19000/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&hot=false&strict=false&minify=false:null in emit

at http://172.30.1.18:19000/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&hot=false&strict=false&minify=false:null in onmessage

at http://172.30.1.18:19000/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&hot=false&strict=false&minify=false:null in dispatchEvent

at http://172.30.1.18:19000/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&hot=false&strict=false&minify=false:null in <unknown>

at node_modules\@firebase\util\dist\index.esm2017.js:null in ObserverProxy#forEachObserver

at http://172.30.1.18:19000/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&hot=false&strict=false&minify=false:null in __callFunction

at http://172.30.1.18:19000/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&hot=false&strict=false&minify=false:null in <unknown>

at http://172.30.1.18:19000/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&hot=false&strict=false&minify=false:null in __guard

at http://172.30.1.18:19000/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&hot=false&strict=false&minify=false:null in callFunctionReturnFlushedQueue



확인부탁드려요!!

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