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
재시작 해주면 정상적으로 실행된다.
'에러 해결' 카테고리의 다른 글
| [React-Query]error: Missing queryFn error when using useQuery (0) | 2022.04.25 |
|---|---|
| [React]error: Warning: Each child in a list should have a unique "key" props (0) | 2022.04.25 |
| [Git] error: failed to push some refs to (0) | 2022.01.04 |
| [React] error: useRoutes() may be used only in the context of a <Router> component. (0) | 2021.11.27 |
| [Aws]error: aws Amplify 배포할 때 이미지 유실 문제 (0) | 2021.11.25 |