[babel] error: Requires Babel "^7.0.0-0", but was loaded with "6.26.3". If you are sure you have a compatible version of @babel/core...

muz·2021년 7월 21일
0

Trouble-Shooting 🔨

목록 보기
6/11
post-thumbnail

😥 문제 상황

Error: Requires Babel "^7.0.0-0", but was loaded with "6.26.3". If you are sure you have a compatible version of @babel/core, it is likely that something in your build process is loading the wrong version. Inspect the stack trace of this error to look for the first entry that doesn't mention "@babel/core" or "babel-core" to see what is calling Babel.

해당 에러를 보니 바벨 버전에 문제가 있다고 한다...

npm uninstall babel-cli babel-core
npm install babel-cli babel-core@^7.0.0-bridge.0

😤 해결 방법

나는 다음과 같이 입력을 했음에도 계속 위와 같은 에러가 발생했다.

npm uninstall babel-cli babel-core

그래서 위의 명령어 대신 다음과 같이 작성해주었다.

npm uninstall @babel-cli @babel-core

제대로 삭제되었는지, 또는 제대로 설치되었는지 보고 싶다면 package-lock.json파일에서 ctrl+F해서 babel-core 입력 후 참고하면 된다.

이제 잘 나온다... 😵 하루 종일 이 에러만 해결했다 !!!

버전을 유의합시다..

profile
Life is what i make up it 💨

0개의 댓글