ios 관련으로 에러가 발생했다.
에러의 내용은 다음과 같다.
TypeError [ERR_INVALID_ARG_TYPE]: [ios.dangerous]: withIosDangerousBaseMod: The "paths[0]" argument must be of type string. Received undefined
https://github.com/facebook/react-native/issues?q=is%3Aissue+%5BERR_INVALID_ARG_TYPE%5D
GitHub - facebook/react-native: A framework for building native applications using React
A framework for building native applications using React - facebook/react-native
github.com
여기에서 뒤적뒤적 해봤는데 일단 시도해본 사항은 다음과 같다.
Npx expo prebuild 를 해보았음 -> 안됨
npx install -> 안됨
npx expo-doctor 에서 센트리 관련 호환성 문제 있을 수 있다길래 센트리 버전 바꿔봄 -> 안됨
git 으로 과거 시간 여행 해서 npm run ios ... .-> 안됨
팀원분이 이미 진행하신 사항
node modules 지움 -> 안됨
캐시 지움 -> 안됨
캐시 지우고 껐다 킴 -> 안됨
프로젝트 루트안가져온다 , config 를 찍어봄 , 뭔가 이상했음, config 에서 설정하면 잘 되지 않을까 -> 시도중
근데 도저히 해결이 날 것 같지 않아서
일단 할 수 있는 것을 먼저해보려고한다.
그래서 할 일은 timezone 설정하기
timezone 을 휴대폰 location 에 따라서 timezone 이 바뀌도록 해볼 예정이다.
https://www.npmjs.com/package/react-native-timezone
react-native-timezone
A Simple react native module to get Timezone and Region of the Android/iOS devices.. Latest version: 3.0.1, last published: a year ago. Start using react-native-timezone in your project by running `npm i react-native-timezone`. There are no other projects
www.npmjs.com
여기를 참고하면 될 것 같은데 여기에서도 특히 getTimeZone를 사용해보려고한다.
일단 바꿀 것은 크게 두개인데, 시간을 나타내는 timezone 문제 + calendar 에 나타나는 날짜문제가 있다.
이거 해결해보려고 한다.
저기에 나오는 ios NStimezone 이 뭔가했는데 apple 에서 사용하는 시간 관련 인것으로 보였다.
https://developer.apple.com/documentation/foundation/nstimezone
'소프트웨어 마에스트로 > FrontEnd' 카테고리의 다른 글
[RN] 버튼 클릭하면 로딩 컴포넌트 나오기 (2) | 2024.11.13 |
---|---|
[React Native] expo font 적용기 (5) | 2024.11.13 |
[React Native] 짱짱한 시간 모듈 만들기 (1) | 2024.10.29 |
[FE] 구글 플레이스토어 배포기 (2) | 2024.09.02 |
[프론트] node.js, npm, (3) | 2024.07.19 |