[Vue3] Parsing error: No Babel config file detected 오류

KBS·2022년 4월 9일
1

Vue3

목록 보기
2/3

Parsing error: No Babel config file detected for C:\Users\kbs\Desktop\VuejsPrac\vuedongsan\vetur.config.js. Either disable config file checking with requireConfigFile: false, or configure Babel so that it can find the config files.

이전 포스팅의 에러를 해결하니 위와같은 에러가 발생하였다.

해결방법은 아래와 같다.

https://github.com/babel/babel/issues/11975 이거 따라해서
프로젝트 폴더에 .eslintrc.json 파일을 만들고

{
  "parser": "@babel/eslint-parser",
  "parserOptions": { "requireConfigFile" : "false" },
  "babelOptions": { "configFile": "./.babelrc", }
}

넣어보거나
vscode의 이상한 익스텐션 끄거나 아니면 다른 폴더에 프로젝트 재생성해보시면 된다.

profile
FE DEVELOPER

0개의 댓글