목록분류 전체보기 (4)
방로그
To https://github.com/aurpo1/aurpo1.github.io.git ! [rejected] main -> main (non-fast-forward) error: failed to push some refs to 'https://github.com/aurpo1/aurpo1.github.io.git' hint: Updates were rejected because the tip of your current branch is behind hint: its remote counterpart. Integrate the remote changes (e.g. hint: 'git pull ...') before pushing again. hint: See the 'Note about fast-fo..
https://gist.github.com/480/4681b67d2a906db8c6c1321cc678f05f
인프런 리액트 기본강의를 듣는데 예전 강의라 그런지 현재 업데이트 되어 달라진 부분이 있었다. React v5에 있던 useHistory 기능이 useNavigate 기능으로 통합되었다. import { Navigate, useNavigate } from "react-router-dom"; 추가 해주고 let navigate = useNavigate(); 선언해주고 원하는 부분에 navigate('/') 사용해주면 된다
인프런에서 노드, 리액트 기본 강의를 듣다가 가끔 이런 에러가 떴다. Compiled with problems:X ERROR in ./node_modules/body-parser/lib/read.js 20:11-26 Module not found: Error: Can't resolve 'zlib' in 'C:\Users\aurpo\boilerplate\client\node_modules\body-parser\lib' BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default. This is no longer the case. Verify if you need this module and configur..