본문 바로가기

error4

LifeCycle API LifeCycle은 리액트에서 컴포넌트를 만들어낼 때 중요하다. 컴포넌트가 브라우저에서 나타날 때(Mounting), 업데이트될 때(Updating : 컴포넌트의 props나 state가 바뀔 때), 사라질 때(Unmounting) 등에 사용된다. Mounting Updating Unmounting constructor, getDerivedStateFromProps, componentDidMount getDerivedStateFromProps, shouldComponentUpdate, getSnapshotBeforeUpdate, componentDidUpdate componentWillUnmount constructor 생성자 함수이다. 우리가 만든 컴포넌트가 처음 브라우저에 나타날 때 만들어지는 과정에.. 2021. 1. 30.
Cannot truncate a table referenced in a foreign key constraint mysql에서 외래키 설정 후 5.5.7 부터 FOREIGN KEY 설정이 된 테이블을 TRUNCATE 하려면 FOREIGN_KEY_CHECKS을 0으로 지정해야한다. 그렇지 않으면 외래키 때문에 진행할 수 없다고 나온다. SET FOREIGN_KEY_CHECKS = 0; TRUNCATE TABLE User; -- Truncate 할 테이블 SET FOREIGN_KEY_CHECKS = 1; 2021. 1. 20.
W: GPG error: https://pkg.jenkins.io/debian-stable binary/ Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY ec2 ubuntu에 jenkins 설치 도중 sudo apt-get update에서 에러가 났다. W: GPG error: https://pkg.jenkins.io/debian-stable binary/ Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 16개의 대문자 알파벳 로 에러가 뜬다면 $sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 16개 대문자 알파벳 로 해주면 된다. 2020. 12. 23.
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun 빅서 업데이트 후 git commit 을 하려는데 에러가 발생했다. $ xcode-select --install 설치해주면 된다..! 2020. 12. 22.