[React] React: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined.
render에서 state의 이름과 class이름이 같아서 class를 제대로 로드하지못해서 발생한 문제 Ex) this.state.test 와 import test from './test'; 이렇게 이름이 같아서 제대로 로드되지않아서 발생수정후 정상 동작
Error/React.js
2020. 5. 21. 11:19
[Git] Command failed: /bin/git submodule update -q --init --recursive Could not change back to '/root/.npm/_cacache/tmp/git-clone-cf8cfc12': ?? ??
정확한 원인은 파악하지못하 root계정에서 npm install시 발생구글링 해보았지만 명확한대답을 얻지못함 root에서나와 일반계정에서 실행 정상동작 보니까 해당 폴더의 권한이 일반계정 사용자로 되어있었음그래서 된건지는 모르겠지만 해당 폴더의 권한을 가지고있는 일반 사용자 계정에서 npm install 실행하니 해결 ----2020.02.18chown -R user:user project위와 같이 하위의 모든 권한을 일반 사용자 권한으로 변경하니 정상 동작
Error/git
2020. 2. 12. 21:17