DBILITY

react EsLint: Error: Failed to load config "react-app/jest" to extend from. 본문

front-end & ui/react

react EsLint: Error: Failed to load config "react-app/jest" to extend from.

DBILITY 2021. 12. 10. 18:41
반응형

intellij로 react를 학습하다가 moment package를 설치하고, 그냥 npm audit fix --force를 실행했다가

다름과 같은 오류가 발생하였다.

Error: Failed to load config "react-app/jest" to extend from.
Referenced from: C:\Dev64\workspace\ex01\package.json

Error: Failed to load config "react-app/jest" to extend from.
Referenced from: C:\Dev64\workspace\ex01\package.json
    at configMissingError (C:\Dev64\workspace\ex01\node_modules\eslint\lib\cli-engine\config-array-factory.js:265:9)
    at ConfigArrayFactory._loadExtendedShareableConfig (C:\Dev64\workspace\ex01\node_modules\eslint\lib\cli-engine\config-array-factory.js:826:23)
    at ConfigArrayFactory._loadExtends (C:\Dev64\workspace\ex01\node_modules\eslint\lib\cli-engine\config-array-factory.js:731:25)
    at ConfigArrayFactory._normalizeObjectConfigDataBody (C:\Dev64\workspace\ex01\node_modules\eslint\lib\cli-engine\config-array-factory.js:660:25)
    at _normalizeObjectConfigDataBody.next (<anonymous>)
    at ConfigArrayFactory._normalizeObjectConfigData (C:\Dev64\workspace\ex01\node_modules\eslint\lib\cli-engine\config-array-factory.js:596:20)
    at _normalizeObjectConfigData.next (<anonymous>)
    at createConfigArray (C:\Dev64\workspace\ex01\node_modules\eslint\lib\cli-engine\config-array-factory.js:340:25)
    at ConfigArrayFactory.loadInDirectory (C:\Dev64\workspace\ex01\node_modules\eslint\lib\cli-engine\config-array-factory.js:433:16)
    at CascadingConfigArrayFactory._loadConfigInAncestors (C:\Dev64\workspace\ex01\node_modules\eslint\lib\cli-engine\cascading-config-array-factory.js:328:46)
Process finished with exit code -1

npm update를 하고 나니

Problem with ESLint reformatting:
 App.js: Specify a path to the 'eslint' package

intellij IDE restart를 해보고 npm start하니 첫번째와 동일한 오류 발생. rendering은 되는데.

intellij IDE setttings -> Language & Frameworks -> JavaScript -> Code Quality Tools -> ESLint를 사용하지 않음을 처리하면 되긴 하는데, 이럼 코드분석이 안되니 난감.

package-lock.json하고, node_modules디렉토리를 삭제, npm install

그래도 안되면 package.json안에 jest부분을 제거하자. 우선 진도는 나가야 하니까.

반응형
Comments