React Native를 사용하여 앱을 만들고 있는데이 오류가 있습니다.UnableToResolveError : 모듈`./node_modules/react-native/packager/src/components`을 확인할 수 없습니다.
캐시를 지우고 패키지를 다시 설치하려고했지만 계속 문제가 발생했습니다.
이것은 터미널의 오류 메시지입니다.
UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): UnableToResolveError: Unable to resolve module
./node_modules/react-native/packager/src/components
from/Users/andy/Downloads/testapp/index.ios.js
: Directory /Users/andy/Downloads/testapp/node_modules/react-native/packager/src/components doesn't exist
아무도 도와 줄 수 있습니까?
합니까이 경로 "/ 사용자/앤디/다운로드/testapp를/node_modules/반응 네이티브/포장기/SRC/구성 요소가"시스템에 존재? – atitpatel
찾을 수 없습니다. 어떻게 추가 할 수 있습니까? –
존재하지 않는 경우 추가 할 필요가 없습니다. 대신 상대 경로를 변경하십시오. index.ios.js에서 항목을 가져 오시겠습니까? – atitpatel