The react-scripts package provided by Create React App requires a dependency
:
"babel-jest": "^26.6.0"
리액트 프로젝트 생성 후에, npm start를 이용해서 실행시키니깐 위와 같은 에러 발생
해보라는 대로 package.json 삭제, yarn.lock 삭제 다 해봤는데 안됨
해결방법
작업 폴더 외부에 node_modules폴더가 만들어져 있었는데
(아마도 예전에 다른거 하다가 만들어진듯)
이걸 지우고 실행하니깐 잘 실행됐음
참고한 사이트
Need help on a react.js error that I keep on getting
Every time I try running npm start on a new project I keep on getting this error. Does anyone know or have any idea how to fix this?? There might be a problem with the project dependency tree. It is
stackoverflow.com
https://swimmingkiim.blogspot.com/2020/06/create-react-app-babel-jest-nodejs-jest.html
create-react-app의 babel-jest와 Node.js 서버 쪽 jest의 충돌 에러
create-react-app의 babel-jest와 Node.js 서버 쪽 jest의 충돌 에러 어제 jest로 서버 쪽에서 API 테스트를 돌렸다. 그리고 오늘 로컬로 client를 돌리는데 npm start를 쳤더니 위와 같은 에러가 나왔다.
swimmingkiim.blogspot.com
https://github.com/facebook/create-react-app/issues/7169
react-scripts babel-jest version conflict · Issue #7169 · facebook/create-react-app
Is this a bug report? Yes Environment Node: 10.15.3 NPM: 6.9.0 Yarn: 1.16.0 Output of npx create-react-app --info Environment Info: System: OS: Linux 5.0 Solus 4.0 CPU: (4) x64 Intel(R) Core(TM) i5...
github.com
https://www.inflearn.com/questions/32833
안녕하세요 npm 설정 시 오류가 발생하여 질문 남깁니다. - 인프런 | 질문 & 답변
강의대로 따라하다가, npm run dev를 치고 엔터를 치는데, There might be a problem with the project dependency tree. It is likely not a bug in Create React App, but so...
www.inflearn.com
에러 전문
'프로그래밍 에러 Error' 카테고리의 다른 글
VS Code 단축키 사이트 저장 (0) | 2021.08.10 |
---|---|
[리액트 에러] Array.map is not a function (22) | 2021.08.09 |
[expo 설치 에러] 'expo'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는 배치 파일이 아닙니다. (0) | 2021.08.05 |
[리액트 에러 해결] 'react-scripts'은(는) 내부 또는 외부 명령 실행할 수 있는 프로그램, 또는 배치 파일이 아닙니다. (0) | 2021.03.28 |
[리액트 에러 해결] Failed to compile 'Jombotron' is not defined react/jsx-no-undef (0) | 2021.03.27 |