하 ..ㅋㅋ 오랜만에 리액트 네이티브 지도 앱 만들어보려했는데 오류 한뭉텅이 일어난다.
1번 오류 AIRMAP
먼데 이건 ..ㅋㅋㅋㅋ
Invariant Violation: requireNativeComponent: "AIRMap" was not found in the UIManager.
해결책 :
react-native.config.js 이라는 파일 만들고 (루트 파일경로에)
아래코드 넣어주면된다
module.exports = {
project: {
android: {
unstable_reactLegacyComponentNames: [
'AIRGoogleMap',
'AIRMap',
'AIRMapMarker',
'PanoramaView'
],
},
ios: {
unstable_reactLegacyComponentNames: [
'AIRGoogleMap',
'AIRMap',
'AIRMapMarker',
'PanoramaView'
],
},
},
};
2번 오류 styled component
이건또 뭔데 스타일 컴포넌트 설치 왜안되는데
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
해결책 :
리액트 네이티브 루트 폴더 경로에 .npmrc 파일을 생성하고 아래 코드 붙여넣기 그러면 해결
legacy-peer-deps=true
'오늘의뻘짓' 카테고리의 다른 글
리액트 설치시 오류 “npm install” 오류 발생할때 :- npm i npm ERR! code EEXIST npm ERR! syscall rename (0) | 2024.03.16 |
---|---|
맥 OS 새 터미널 안열리는 오류 (0) | 2023.12.28 |
[따라하며 배우는 노드js] 13강 오류 (2) | 2023.11.24 |
[따라하며 배우는 노드js] 12강 오류 (0) | 2023.11.24 |
[따라하며 배우는 노드js] 7강 오류 (1) | 2023.11.22 |