728x90
반응형

Development/Error 26

[error] 'appcast' stanza failed with: Calling the `appcast` stanza is disabled! Use the `livecheck` stanza instead.

Java -version : 21app에서 사용하는 버전은 11 열심히 구글링... $ brew install --cask adoptopenjdk11이것도 안되고$ brew install --cask adoptopenjdk/openjdk/adoptopenjdk11이것도 안된다. 에러 해결 이후 발견한 방법brew install openjdk@17brew install openjdk@11해결 : 터미널 창에서1.   /usr/libexec/java_home -V.            // 입력 나는 정말 많이 설치가 되어 있었다.. 버전도 다양하고 중복되고ㅎ 그래서 안되었나 그리고 환경변수를 설정하라는데, 그것도 잘 모르겠고, 나는 openjdk11 하나만 필요해서 11을 제외하고 다 삭제하기로 했다. 그..

Development/Error 2024.02.15

[warn] RCTBridge required dispatch_sync to load RCTAccessibilityManager. This may lead to deadlocks

[warn] RCTBridge required dispatch_sync to load RCTAccessibilityManager. This may lead to deadlocks 해결 :react-native 버전이 너무 최신이라서 발생한 단계 낮은 reactnative로 설치하니해당 메시지 뜨지 않고 정상 빌드 되었음. npx react-native init 프로젝트이름 --version 특정버전예)npx react-native init 프로젝트이름 --version 0.73.2 # 이미 프로젝트를 설치한 경우!package.json 파일에서 "react-native": "0.73.2"원하는 버전으로 수정 후 터미널에서 npm install  후 다시 실행해 본다

Development/Error 2024.02.06

[error] React native 폴더 이름 변경 후 render error 가 발생하였다.

chatGPT에 물어보니 node modules 폴더 삭제 및 재설치를 해결방안으로 알려주었다. 1. 삭제 코드 rm -rf node_modules npm install 2. iOS와 Android 폴더 업데이트 - cd ios - pod install - cd android -./gradlew clean 3. 프로젝트 설정 업데이트 package.json 에서 프로젝트 이름이 올바르게 설정되어 있는지 확인(바뀐 이름으로 설정되어 있는지) iOS / android 프로젝트의 설정 파일에서도 폴더 이름이 올바르게 설정되어 있는지 확인 4. 캐시 지우기 rm -rf /tmp/metro-* npm start -- --reset-cache 근데 결국 안 돼서 그냥 프로젝트 새로 만들었다..... 프로젝트 폴더 ..

Development/Error 2024.01.22

[error] Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up d..

[Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports. ----->> 원인 : 파일이름과 선언한 곳에서의 이름이 일치하지 않으면 발생하는 것 같다 예) Home.js로 작성 사용하려는 곳에서 Import {SweeHome} from ‘./Home.js’ 이렇게 사용하였더니 발생하였..

Development/Error 2024.01.22

[error] Failed to install the app. Looks like your Android environment is not properly set. Please go to https://reactnative.dev/docs/0.73/environment-setup?os=macos&platform=android&guide=native#jdk-studio and follow the React Native CLI QuickStart gui..

npm run android를 하면 자꾸 저런 에러가 나면서 빌드가 안된다. npm install 을 해보아도, gradle 위치를 변경해 보아도 잘 안되었는데, 아래 사이트에서 방법을 적용하니 되었다. https://aboveimagine.tistory.com/126 [RN] 맥OS에서 리액트 네이티브 설치하기 feat 오류 폭탄🥲 리액트 네이티브란 리액트 네이티브(React Native)는 페이스북이 개발한 오픈 소스 모바일 애플리케이션 프레임워크이다. 안드로이드, iOS, 웹, UWP용 애플리케이션을 개발하기 위해 사용되며, 개발 aboveimagine.tistory.com 바로 brew install --cask adoptopenjdk // jdk를 업데이트했어야 했나 보다..

Development/Error 2024.01.09

[error] kakao-share android error

이런 이미지가 뜬 경우 kakao developers에서 애플리케이션에 들어가 ios/android 플랫폼을 등록해 주면 된다. https://developers.kakao.com/console/app 카카오계정 accounts.kakao.com -ios의 경우 xcode에 있던 번들 Id -android의 경우 androidManifest.xml의 package 속성을 확인하라는데 찾아봐도 없다. 그럴 때는 firebase 프로젝트 설정 >> 내 앱 카테고리에서 패키지 이름을 확인할 수 있다. ios는 번들 Id 입력 후 문제없이 공유기능이 가능하였지만, android는 계속 실패하였다. 패키지 이름만 입력하면 되는 것이 아닌가 보다. 다시 빌드를 해보고 있는 중이다. 빌드가 될 때도 있고, 다시 실패..

Development/Error 2024.01.09

[error] no firebase app ' default ' has been created - call firebase.initializeapp()--reactNative-ios

xcode 에서 AppDelegate.m 파일에 코드입력을 했더니 해결됨 #import "AppDelegate.h" #import // 이거 추가 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { [FIRApp configure]; // 이거 추가 } 그래도 동일한 에러가 계속 났는데, podfile에 추가하는 코드 중에 config = use_native_modules! use_frameworks!:linkage => :static // 이거를 :linkage => :static 없이 use_frameworks! // 이렇게만 적어서 빌드해보니 정상 작동하..

Development/Error 2024.01.04
728x90
반응형