본문 바로가기

Grew from/Trouble Shooting

(29)
[adnroid] This version of the Android Support plugin for IntelliJ IDEA (or Andro 안드로이드 프로젝트 같이 할 때 동료가 버전 올려버려서 안맞을때 발생하는 증상build.gradle 보면 com.android.tools.build:gradle:4.0.0 내껀 이건데 동료가 4.1.0이었다. 방법1. 버전 낮은 사람이 안드로이드 스튜디오 업데이트 해서 높은 버전으로 맞춘다 (Android Studio(window는 Help) → Check for Updates) 방법2. 버전 높은 사람이 낮춘 버전으로 그레이들 다시 받고 (File → Sync Project with Gradel Files) P.S gradle 4.1에서 react-native UDP 이슈 있어서 4.0으로 낮췄다.
리덕스는 작동하는데 사가는 작동안할 때 에러가 나는 것도 아니고 devtools보니깐 리덕스 자체는 작동하는데 리덕스 사가가 작동을 안했다. 루트사가에서 사가함수를 호출 하는지 확인해보자 function* rootSaga() { yield all([searchSaga()]); // searchSaga라고 써놓음 }
Error: Actions must be plain objects. Use custom middleware for async actions. 리덕스 하던중에 만난에러. 아무리 봐도 오타난 곳이 없어서 왜 이런 에러가 날까 한참 고심했다. next에 action을 뻬먹어서 다음 실행 미들웨어(혹은 리듀서)에 액션을 넘겨줄수 없으므로 발생한거 였다. const 미들웨어 = store => next => action => { // ... return next(action); // 여기에 action을 빼먹음 }
A component is changing a controlled input of type text to be uncontrolled. Input elements should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled input element for the lifetime of the compone.. index.js:1 Warning: A component is changing a controlled input of type text to be uncontrolled. Input elements should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled input element for the lifetime of the component.useReducer 사용하다가 만난 에러. 복붙하다가 input의 onChange에 건 dispatch에서 변경할 키값을 엉뚱한걸 입력했다. 변경 하는 데이터의 키가 엉뚱한게 들어있으니깐 input을 컨트롤할수 없다고 ..
ValidationError: Style Loader Invalid Options "style-loader" 안깔려있어서 발생했던 에러인데, 1버전에서 발생시 1버전으로 업그레이드 하면 해결된다는 말도...? (내가 만든 플젝이 아니라 왜 안됬는지도 모르겠음) "react-scripts": "3.3.0"에서 이슈 많으니 "3.4.0" 이상으로 올려야 함
[android] 빌드시 Nullable에 빨간줄 그어질 때 import android.support.annotation.Nullable; 가 없다고 나오면서 빌드 실패할 때. import androidx.annotation.Nullable; 로 변경한다.
[RN] Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. 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. 내부 컴포넌트 이름 오타 났을때 발생 Animate.View 인데 Animate.view라고 썼었음
[RN] Webview로 postMessage 보낸거 받기 두번째 매개변수 있으면 안드로이드에서 인식 못하는 이슈가 있음 https://github.com/react-native-community/react-native-webview/issues/323 // 웹은 postMessage를 보낼때 아래와 같이 보냄 window.postMessage(JSON.stringify(data), "*"); // ReactNative WebView에 postMessage를 보낼때는 아래와 같이 보내야 함, ReactNativeWebView.postMessage(JSON.stringify(data));