본문 바로가기
에러 해결

[ React Error ] Failed to load config "react-app" to extend from.

by codnjs779 2022. 11. 9.

yarn create-react app을 설치하고 App 컴포넌트에서 텍스트를 수정하면 error 가 발생한다. 

Failed to load config "react-app" to extend from.

 

$ yarn add eslint-config-react-app

eslint 를 설치해주면 아마 또 오류가 발생한다.

ERROR in Plugin "react" was conflicted between "package.json » eslint-config-react-app 

package.json 과 eslint가 충돌해서 발생하는 문제이다. 

 

상위 폴더 위치에 파일을 하나 추가해줘야함. 

packageExtensions:
  react-scripts@*:
    peerDependencies:
      eslint-config-react-app: '*'

 

추가해준 다음,

$ yarn clean cache

yarn을 재설치 해준다.

$ yarn install
$ yarn start

재시작 해주면 정상적으로 실행된다.