
* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.
* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.
$ expo install expo-location 을 설치하고 나서 이런 에러가 뜨는데 혹시 설치하는 위치를 잘못 잡은 거면 어떻게 해야 하나요?
작성한 코드 및 에러 메세지
InternalError Metro has encountered an error: While trying to resolve module `expo-location` from file `C:\Users\HMK\Desktop\sparta-study\sparta-hmk\pages\MainPage.js`, the package `C:\Users\HMK\Desktop\sparta-study\sparta-hmk\node_modules\expo-location\package.json` was successfully found. However, this package itself specifies a `main` module field that could not be resolved (`C:\Users\HMK\Desktop\sparta-study\sparta-hmk\node_modules\expo-location\build\Location.js`. Indeed, none of these files exist:
* C:\Users\HMK\Desktop\sparta-study\sparta-hmk\node_modules\expo-location\build\Location.js(.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\HMK\Desktop\sparta-study\sparta-hmk\node_modules\expo-location\build\Location.js\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\HMK\Desktop\sparta-study\sparta-hmk\node_modules\metro\src\node-haste\DependencyGraph.js (277:17)
275 |
276 | if (error instanceof InvalidPackageError) {
> 277 | throw new PackageResolutionError({
| ^
278 | packageError: error,
279 | originModulePath: from,
280 | targetModuleName: to,
at http://192.168.0.104:19000/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&hot=false&strict=false&minify=false:29990:25 in showCompileError
at http://192.168.0.104:19000/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&hot=false&strict=false&minify=false:29923:28 in <unknown>
>at http://192.168.0.104:19000/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&hot=false&strict=false&minify=false:20134:14 in __guardat http://192.168.0.104:19000/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&hot=false&strict=false&minify=false:19943:20 in callFunctionReturnFlushedQueue
