[리액트 네이티브] Error: Exception in HostFunction: Unable to convert string to floating point value: "large"

수민·2024년 11월 16일

개요


계속 진행해오던 expo 프로젝트가 sdk52로 업그레이드하라더니 버전 업그레이드 후엔 Error: Exception in HostFunction: Unable to convert string to floating point value: "large" 에러가 뜨기 시작했다...
검색해보니 11월 13일에 새로운 sdk가 출시된 후 생기는 문제인 것 같다.

해결과정


다른 블로그를 찾아보니 npx expo-doctor@latest를 해보라고 해서 해봤다.대충 보니 sdk랑 모듈 및 패키지 버전이 안맞아서 그런 것 같다.
터미널에 Advice: Use 'npx expo install --check' to review and upgrade your dependencies.가 떴기 때문에 이 명령어를 실행해 보았다.

npx expo install --check

그러자 두 개 빼곤 수정됐다. 그래도 다시 실행이 잘돼서 일단은 이대로 둘 예정이다.

0개의 댓글