
Metro has encountered an error: While trying to resolve module `idb` from file `/Users/yuhyeonsu/Desktop/sparta-study/sparta-myhoneytip-Su/node_modules/@firebase/app/dist/esm/index.esm2017.js`, the package `/Users/yuhyeonsu/Desktop/sparta-study/sparta-myhoneytip-Su/node_modules/idb/package.json` was successfully found. However, this package itself specifies a `main` module field that could not be resolved (`/Users/yuhyeonsu/Desktop/sparta-study/sparta-myhoneytip-Su/node_modules/idb/build/index.cjs`. Indeed, none of these files exist:
* /Users/yuhyeonsu/Desktop/sparta-study/sparta-myhoneytip-Su/node_modules/idb/build/index.cjs(.native|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx|.ios.js|.native.js|.js|.ios.jsx|.native.jsx|.jsx|.ios.json|.native.json|.json)
* /Users/yuhyeonsu/Desktop/sparta-study/sparta-myhoneytip-Su/node_modules/idb/build/index.cjs/index(.native|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx|.ios.js|.native.js|.js|.ios.jsx|.native.jsx|.jsx|.ios.json|.native.json|.json): /Users/yuhyeonsu/Desktop/sparta-study/sparta-myhoneytip-Su/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,
ABI45_0_0RCTFatal
__37-[ABI45_0_0RCTCxxBridge handleError:]_block_invoke
_dispatch_call_block_and_release
_dispatch_client_callout
_dispatch_main_queue_drain
_dispatch_main_queue_callback_4CF
__CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
__CFRunLoopRun
CFRunLoopRunSpecific
GSEventRunModal
-[UIApplication _run]
UIApplicationMain
main
start_sim
0x0
0x0
expo start 시 이런 오류가 뜨면서 되지 않습니다.
