커뮤니티
포인트
쿠폰
내 강의실
국비 신청 내역
증명서
계정
로그아웃
학습 질문
개발 일지
나의 활동
답변 완료
스택 네비게이터 연결중 오류가 발생했습니다.
[왕초보] 나만의 수익성 앱, 앱개발 종합반 v5
3주차
북마크
배*영
댓글
5
추천
0
조회수
13
조회수
13
답변 완료

프로그램들 설치 후 코드스니펫을 붙여넣었는데 오류가 발생했습니다.


스파르타 즉문즉답

작성한 코드 및 에러 메세지

While trying to resolve module `@react-navigation/core` from file `C:\Users\user\Desktop\sparta-study\sparta-myhoneytip-sy\node_modules\@react-navigation\native\src\index.tsx`, the package `C:\Users\user\Desktop\sparta-study\sparta-myhoneytip-sy\node_modules\@react-navigation\core\package.json` was successfully found. However, this package itself specifies a `main` module field that could not be resolved 

(`C:\Users\user\Desktop\sparta-study\sparta-myhoneytip-sy\node_modules\@react-navigation\core\src\index.tsx`. Indeed, none of these files exist:


 * C:\Users\user\Desktop\sparta-study\sparta-myhoneytip-sy\node_modules\@react-navigation\core\src\index.tsx(.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\user\Desktop\sparta-study\sparta-myhoneytip-sy\node_modules\@react-navigation\core\src\index.tsx\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)

Error: While trying to resolve module `@react-navigation/core` from file `C:\Users\user\Desktop\sparta-study\sparta-myhoneytip-sy\node_modules\@react-navigation\native\src\index.tsx`, the package `C:\Users\user\Desktop\sparta-study\sparta-myhoneytip-sy\node_modules\@react-navigation\core\package.json` was successfully found. However, this package itself specifies a `main` module field that could not be resolved (`C:\Users\user\Desktop\sparta-study\sparta-myhoneytip-sy\node_modules\@react-navigation\core\src\index.tsx`. Indeed, none of these files exist:


 * C:\Users\user\Desktop\sparta-study\sparta-myhoneytip-sy\node_modules\@react-navigation\core\src\index.tsx(.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\user\Desktop\sparta-study\sparta-myhoneytip-sy\node_modules\@react-navigation\core\src\index.tsx\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)

  at DependencyGraph.resolveDependency (C:\Users\user\Desktop\sparta-study\sparta-myhoneytip-sy\node_modules\metro\src\node-haste\DependencyGraph.js:277:17)

  at Object.resolve (C:\Users\user\Desktop\sparta-study\sparta-myhoneytip-sy\node_modules\metro\src\lib\transformHelpers.js:170:21)

  at resolveDependencies (C:\Users\user\Desktop\sparta-study\sparta-myhoneytip-sy\node_modules\metro\src\DeltaBundler\graphOperations.js:466:33)

  at processModule (C:\Users\user\Desktop\sparta-study\sparta-myhoneytip-sy\node_modules\metro\src\DeltaBundler\graphOperations.js:232:31)

  at addDependency (C:\Users\user\Desktop\sparta-study\sparta-myhoneytip-sy\node_modules\metro\src\DeltaBundler\graphOperations.js:361:18)

  at async Promise.all (index 0)

  at processModule (C:\Users\user\Desktop\sparta-study\sparta-myhoneytip-sy\node_modules\metro\src\DeltaBundler\graphOperations.js:279:3)

  at traverseDependenciesForSingleFile (C:\Users\user\Desktop\sparta-study\sparta-myhoneytip-sy\node_modules\metro\src\DeltaBundler\graphOperations.js:221:3)

  at traverseDependencies (C:\Users\user\Desktop\sparta-study\sparta-myhoneytip-sy\node_modules\metro\src\DeltaBundler\graphOperations.js:147:7)

  at DeltaCalculator._getChangedDependencies (C:\Users\user\Desktop\sparta-study\sparta-myhoneytip-sy\node_modules\metro\src\DeltaBundler\DeltaCalculator.js:263:42)


InternalError Metro has encountered an error: While trying to resolve module `@react-navigation/core` 

from file `C:\Users\user\Desktop\sparta-study\sparta-myhoneytip-sy\node_modules\@react-navigation\native\src\index.tsx`, the package `C:\Users\user\Desktop\sparta-study\sparta-myhoneytip-sy\node_modules\@react-navigation\core\package.json` was successfully found. However, this package itself specifies a `main` module field that could not be resolved (`C:\Users\user\Desktop\sparta-study\sparta-myhoneytip-sy\node_modules\@react-navigation\core\src\index.tsx`. Indeed, none of these files exist:


 * C:\Users\user\Desktop\sparta-study\sparta-myhoneytip-sy\node_modules\@react-navigation\core\src\index.tsx(.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\user\Desktop\sparta-study\sparta-myhoneytip-sy\node_modules\@react-navigation\core\src\index.tsx\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\user\Desktop\sparta-study\sparta-myhoneytip-sy\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.2:19000/node_modules%5Cexpo%5CAppEntry.bundle?platform=android&dev=true&hot=false&strict=false&minify=false:29982:25 in showCompileError

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

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

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

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

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

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

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

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

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

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

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