Memo8 ✖ Android SDK - Required for building and installing your app on Android npx @react-native-community/cli doctor 이 코드로 환경설정을 진단 했을 때 아래와 같이 sdk를 다운 받았음에도 이러한 이슈가 있다면 ( 특히 Version supported 의 버전을 컨트롤 하고 싶을 때 ) 프로젝트 파일에서 android -> build.gradle 로 이동하여 버전을 맞춰주자 2022. 7. 17. error Failed to launch emulator. Reason: No emulators found as an output of `emulator -list-avds`. 리액트 네이티브에서 npx react-native init AwesomeProject 명령어로 RN 셋팅을 하였다. 그리고 안드로이드 스튜디오 셋팅을 마치고 npx react-native run-android를 실행했을 때 아래와 같은 에러가 나온다. error Failed to launch emulator. Reason: No emulators found as an output of `emulator -list-avds`. 이럴 땐 SDK 설치를 다시 확인해보자. 참고로 나는 Setting -> Android SDK -> SDK Platforms 에서 Android SDK Platform 33 과 Android SDK Platform 31 이 중복 설치되어있어서 하나를 삭제해주어 에러를 해결하였다. 2022. 7. 16. React 에서 Components 빠르게 생성하기 vscode Extension 에서 Reactjs code snippets를 설치한다. 이후 아무 컴포넌트나 생성하여 rsc를 입력후 자동완성 탭을 확인한다. 엔터나 Tab 키를 누른다. 빠르게 완성! 추가로 빠르게 컴포넌트를 생성한다음 const 옆의 사용자 정의 컴포넌트 네임과 export default 옆의 네임이 한번에 드래그 되어있어 컴포넌트 네임을 변경하는 것도 빠르게 할 수있다. 2022. 7. 8. Node / 로그인 했는데 게시글 작성 시 401 나올 때 back의 미들웨어중 cors에서 credentials: true 를 추가했는지 확인해본다. credentials: true 없다면 추가해주고 이후 front도 확인한다. front에서 axios 의 세번째 인자로 withCredentials: true를 넣어줬는지 확인해보자 { withCredentials: true } 수정후 다시 로그인했는데도 cors에러가 나온다면 CORS policy: Response to preflight request doesn't pass access control check: The value of the 'Access-Control-Allow-Origin' header in the response must not be the wildcard '*' when the req.. 2022. 6. 28. 이전 1 2 다음