-
ERROR in Plugin "react" was conflicted between "package.json » eslint-config-react-app 해결개발 여정/Error 2023. 1. 27. 23:03
에러 문구
ERROR in Plugin "react" was conflicted between "package.json » eslint-config-react-app » C:\Users\..\node_modules\eslint-config-react-app\base.js" and "BaseConfig » C:\Users\...\eslint-config-react-app\base.js".
해결방법을 구글링하면 다음과 같은 방법들이 나온다.
1. package.json 파일 다시 저장하기
해결되긴 하지만 프로젝트를 새로 켤 때마다 ctrl+s를 눌러줘야되기 때문에 번거로웠다.
2. 폴더 or 파일 대소문자 확인하기
실행하고 있는 터미널에서 폴더 or 파일 대소문자가 제대로 되어 있는지 확인한다.
대소문자가 바뀌어 있을 경우 해당 오류가 발생하기도 한다.
하지만 나는 모두 소문자로 설정해도 계속 같은 오류가 발생했음.
3. package.json의 eslintConfig 삭제하기
에러 문구를 잘 살펴보면 package.json의 eslintConfig 세팅과 BaseConfig에서의 eslintConfig 세팅이 충돌한다고 나온다. BaseConfig는 eslint-config-react-app package에서의 설정을 말하는 듯 하다.
둘이 충돌한다고 하니 package.json에서의 다음 eslintConfig 설정을 지워준다.
//package.json "eslintConfig": { "extends": [ "react-app", "react-app/jest" ]
이 방법을 썼더니 비로소 문제가 해결되었다.
역시 에러가 날 때는 에러 문구를 꼼꼼히 살펴보고 분석하는 게 제일 좋은 것 같다.
'개발 여정 > Error' 카테고리의 다른 글
org.apache.http.NoHttpResponseException (0) 2022.02.24 Spring Boot 용량 제한 에러 (0) 2021.10.06 400 에러 :: Required request parameter for method parameter type int is not present (jsp에 문제 없는 경우) (0) 2021.09.17 500 에러 : Duplicate entry for unique index (0) 2021.09.16 500 에러 : Invalid bound statement (not found): com.calmstagram.post.DAO.LikeDAO.selectLikeByUserOrAnd (0) 2021.09.16