728x90

Development/Error 20

[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

[error] (node:27064) [MONGOOSE] DeprecationWarning:

서버 코드 작성 중 실행을 하니까 아래와 같은 오류가 발생하였다. (node:27064) [MONGOOSE] DeprecationWarning: Mongoose: the `strictQuery` option will be switched back to `false` by default in Mongoose 7. Use `mongoose.set('strictQuery', false);` if you want to prepare for this change. Or use `mongoose.set('strictQuery', true);` to suppress this warning. (Use `node --trace-deprecation ...` to show where the warning was creat..

Development/Error 2023.02.21

[error] 'git'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는 배치 파일이 아닙니다.

'git'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는 배치 파일이 아닙니다.라는 문구가 나온다면 환경변수를 설정하면 된다. 경로 : 내PC >> 시스템 속성 >> 고급 >> 환경변수 >> path 찾기에서 시스템 환경변수 검색만 해도 나오는 경우가 있다. C:\Program Files\Git\bin 까지 하면 완료 vsCode에서 저 문구가 나올때마다 폴더 내에서 gitBash를 이용했었다. 그런데 내가 원하는 파일 외에도 업데이트 되거나, 뭔가 충돌되는 경우가 많아서 해결방법을 알아보았다. 생각보다 단순했던 환경변수 설정하기 ㅎㅎ 이제 편하게 vsCode 내에서 git code를 입력할 수 있다.

Development/Error 2023.02.02

[error] -TypeError: Cannot read properties of undefined (reading 'pathname')

-TypeError: Cannot read properties of undefined (reading 'pathname') -react-dom.development.js:18687 The above error occurred in the component: 대충 이런 에러가 나왔다. npm install react-router-dom도 했는데 왜 발생하나 했는데,, 원인 : import {BrowserRouter as Route, Router, Routes} from 'react-router-dom'; 해결 >> import {BrowserRouter as Router, Routes, Route } from 'react-router-dom'; route를 router내 routes보다 앞에 작성해서.....

Development/Error 2023.01.24
728x90