Framework/React

    Failed to load plugin 'prettier' declared in '.eslintrc.js': Cannot find module 'eslint-plugin-prettier'

    1. node_modules 폴더랑 package_lock.json 삭제 후 npm install & npm start 다시 해봤지만 소용 없음.. 2. 노드 버전 문젠가 싶어서 12로 낮췄지만 소용없음.. 3. 그 와중에 nvm 말 안들어서 cmd 관리자권한 실행해서 깔았는데 node 버전까진 잘 되더니 vscode 터미널에서 npm install했더니 또 에러 뜨고 소용 없음.. 35995 error code ELIFECYCLE 35996 error errno 1 35997 error core-js@3.26.0 postinstall: `node -e "try{require('./postinstall')}catch(e){}"` 35997 error Exit status 1 35998 error Fail..

    Module '"react"' has no exported member 'useState'

    Module '"react"' has no exported member 'useState' Module '"react"' has no exported member 'useRef' Module '"react"' has no exported member 'useEffect' react의 버전과 @types/react의 버전이 다를 때 문제가 생길 수 있다. apache echart를 설치하다가 @types/react를 설치해야 한다길래 따라했다가 낭패를 보았다. 버전을 다운그레이드 한 모양이다. Hooks는 React 16.8.0 버전 이상에서만 사용 가능하다. Hooks are only available in React 16.8.0 and up. https://stackoverflow.com/questio..