react-native

· 🚧
리액트 네이티브 프로젝트를 안드로이드 애뮬레이터로 빌드 시 > Task :app:installDebug FAILED Skipping device 'emulator-5554' (emulator-5554): Device is OFFLINE. 29 actionable tasks: 2 executed, 27 up-to-date 이런 오류가 나면서 빌드 failed 가 되는 경우 android sturio AVD manager 에서 처음에 자신이 설치했던 리액트 네이티브 환경에 맞는 버전의 애뮬레이터 설치 후 실행하고 다시 프로젝트를 빌드하기.
· 🚧
duplicated files or mocks. please check the console for more info... npm run ios 를 실행하니 이런 오류가 났다. 1번째 원인으로는 package.json 파일의 name 값이 react-native 규칙과 다르다는 것이었다. (이걸 왜 콘솔에서 표시를 안해주냐고..) name 을 규칙에 맞게 바꿔주면 해결된다. 2번째 원인으로는, 아마 이런 메시지가 떴을 것이다. mokPath1 : 'package.json', mokPath2 : 'another:\\package.json' 루트 폴더 내에 package.json 파일이 두 개라는 것이다. 루트폴더 말고 다른 폴더에 있는 package.json 파일을 삭제하고 터미널 종료 후 다시 실행하면 ..
· 🚧
error React Native CLI uses autolinking for native dependencies, but the following modules are linked manually: - react-native-vector-icons (to unlink run: "react-native unlink react-native-vector-icons") ... error: Multiple commands produce '/Users/user/Library/Developer/Xcode/DerivedData/todo-amgojlyjogtbyxgotzfheqwjjnom/Build/Products/Debug-iphonesimulator/todo.app/SimpleLineIcons.ttf': ... r..
· 🚧
cd ios xcodebuild clean cd android ./gradlew clean
· 🚧
[!] No `Podfile' found in the project directory. pod install 명령어를 실행했더니 발생한 오류. Podfile 을 못 찾겠다는 의미다. 폴더를 잘 보니... 프로젝트 폴더에는 podfile 이 없다. 튜토리얼을 다시 자세히 보니 cd ios 를 하더라!! ios 폴더 안에 보니 podfile 이 있다 ............ cd ios 후 pod install 을 실행시켜주면 해결.
purpplee
'react-native' 태그의 글 목록