Constants.platform.ios.model has been deprecated in favor of expo-device's Device.modelName property. This API will be removed in SDK 45.

Harry Jung·2023년 1월 12일
0

error

목록 보기
1/2

스택 오버플로우 참고 ->
@pwfcurry suggestion worked for me. I tried expo doctor, deleting node_modules/yarn.lock didn't work. I checked in my yarn.lock and sure enough expo was using two versions of expo-constants; 13.2.4 and 14.0.0. I removed 13.2.4, updated all references, ran yarn install and that fixed it for me.

내가 했던 방법 ->
(node_module, yarn.lock)
둘다 지우고. 다시 yarn install 후
package.json의 expo-constants 도 지움.

그리고
yarn.lock 들어가면
Expo-constants 를 검색하면 2가지의 버전이 뜸. 높은 버전인 14.0.0 을 다 지우고
다시 yarn add expo-constants@13.1.1 로 설치후
Yarn run start -c 로 들어가면 에러가 사라 졌음.

profile
Dreamsoft

0개의 댓글