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
갑자기 nodejs 서버를 실행하려는데 저런에러가 뜬다면 babel버전문제이다.
yarn remove babel-cli babel-core 로 제거해주고 (npm 이면 uninstall)
yarn add babel-core@^7.0.0-bridge.0
로 재설치 해주자.
'개발 > Web Programming' 카테고리의 다른 글
[VS CODE] javascript, react에서 emmet 사용하기 (1) | 2020.08.05 |
---|---|
BEM (Block Element Modifier) 이란? (0) | 2020.07.31 |
SPA란? (0) | 2020.07.30 |
[Nodejs] 기본기 2 (0) | 2020.07.30 |
Refused to apply style from 'css/style.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled. (0) | 2020.07.30 |