˙ 오류 내용
error @react-native community/cli@11.3.7: The engine "node" is incompatible with this module. Expected version ">=16". Got "14.17.5" |
해결방법
cli 11버전은 node 버전 16이상 사용
˙ 오류 내용
cli.init(root, projectName); ^ TypeError: cli.init is not a function |
해결방법
해당 오류는 버전이 맞지않아 발생한 오류입니다.
react-native 버전을 낮춰 프로젝트를 실행하면 정상적으로 생성됩니다.
react-native init 프로젝트명 --version 0.68.2
˙ 오류 내용
Invalid options object. Dev Server has been initialized using an options object that does not match the API schema ... |
해결방법
webpack.config.js
ㄴ contentBase 를 static으로 수정
˙ 오류 내용
Cannot read properties of undefined (reading 'isBatchingLegacy') TypeError: Cannot read properties of undefined (reading 'isBatchingLegacy') ... |
해결방법
react-dom 과 react 버전을 맞춰준다
˙ 오류 내용
A problem occurred evaluating project ':app'. > Failed to apply plugin 'com.android.internal.application'. > Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8. Your current JDK is located in C:\Program Files\Java\jdk1.8.0_291\jre You can try some of the following options: - changing the IDE settings. - changing the JAVA_HOME environment variable. - changing `org.gradle.java.home` in `gradle.properties`. |
해결방법
java 버전이 안맞아서 생긴 문제이므로 시스템 환경변수에서 자바 홈을 맞춰준다
VS Code 에서 실행시에는 gradle.properties 에
org.gradle.java.home=C:\\Program Files\\Java\\jdk-11.0.18 - jdk 경로를 추가하면 된다
안드로이드 스튜디오에서는 기존 Gradle의 jdk home을 변경해줘야한다
'오류' 카테고리의 다른 글
[Redis] Redis연동 - 이슈 정리 (0) | 2025.02.13 |
---|---|
[Spring] Oauth 연동 - 이슈 정리 (1) | 2025.01.17 |
[Error] Tibero-1067 오류 정리 (0) | 2022.09.16 |
[Error] Spring Boot 오류 정리 (1) | 2022.09.08 |
[Error] React 자주 보는 오류 정리 (0) | 2021.09.01 |