리액트 에러 모음(업데이트 예정)

김지수·2023년 7월 1일

Error 1 ) [eslint] Failed to load config "react-app/jest" to extend from

  1. 터미널 창에 둘 중 하나를 입력

npm add eslint-config-react-app -D 혹은 npm add eslint-config-react -D

  1. package-lock.jason 파일을 제거
  2. 그래도 안 되면 이 코드를 package.json 에서 제거
"extends": [
         "react-app"
       ]
     },

Error 2 ) **sh: react-scripts: command not found**

터미널 창에 차례로 입력

  1. npm i -g react-scripts
  2. npm install
  3. npm start
profile
안녕하세요

0개의 댓글