본문 바로가기

프로그래밍119

[React Native] pnpm monorepo 사용 시, metro error react-native 0.72.4 프로젝트가 pnpm monorepo로 되어 있고 mobile을 추가하기 위해 React Native CLI Quickstart로 프로젝트 설치 및 설정하고 pnpm start 실행하니 두둥! error: Error: Unable to resolve module react-native from /Users/project.../index.js: react-native could not be found within the project or in these directories: node_modules ../../node_modules 역시 react native는 만만한 상대가 아니였... 이것저것 테스트해 본 결과, yarn으로 실행시에는 yarn start나 yarn .. 2023. 9. 15.
[React Native] Ignoring ffi-1.15.0 because its extensions are not built 오랜만에 React Native를 최신버전(0.72)으로 설치 후 실행해보았다 두둥! 넌 누구냐... 프로젝트 생성하고 실행한 거 밖에 없는데 warning과 error들 warning: Unable to read contents of XCFileList error: Unable to load contents of file list 등등... 계속 모른체하고 옛날 지식으로 pod install을 추가로 실행해보았더니, Ignoring ffi-1.15.0 because its extensions are not built. Try: gem pristine ffi --version 1.15.0 Ignoring ffi-1.15.0 because its extensions are not built. Try: ge.. 2023. 9. 7.
[Sourcetree] .huskyrc command not found 에러 Next.js 프레임워크로 웹 프로젝트 진행 중, husky 추가 후 Sourcetree에서 commit시 error가 발생했다(터미널 명령어로는 동작) 구글링 결과, Mac의 GUI 앱에서 Path 환경변수를 올바르게 인식하지 못하는데서 발생하는 문제라고 한다 마침 nvm을 사용하고 있었고 # ~/.huskyrc export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" 위의 설정과 비슷한 내용을 설정해본 기억이 있어 적용해 보았더니, Sourcetree에서 문제없이 commit과 push가 되었다 아래는 참고한 사이트이고 관련 내용뿐 아니라 Path 환경변수 관련하여 추가 내용이 있어 읽어보면 좋을듯 하다 Sourcetre.. 2023. 8. 4.
[VSCode] 자주 쓰는 단축키 정리 MacOS를 위한 단축키 단축키 설명 shift + option + o import 자동 정리 shift + option + f 코드 자동 정렬 F2 기호 이름 바꾸기 control + - 이전 위치로 이동 F12 해당 정의로 이동 shift + command + space 파라미터 힌트를 보여줌 Search and replace 단축키 설명 command + d 첫번째 단어 선택 후 다음의 동일한 단어 선택하며 계속 추가 끝. 참고. https://code.visualstudio.com/shortcuts/keyboard-shortcuts-macos.pdf 2023. 7. 21.
[Git] 경고: 원격 호스트 ID가 변경되었습니다! Auto fetch failed @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that a host key has just been changed. 갑자기 IDE에서 경고 알림을 보.. 2023. 3. 31.