티스토리 뷰

프론트엔드/Vue.js

[VUE] No Babel config file detected

실전압축코딩 2022. 10. 31. 09:23

Vue 프로젝트를 새로 만들었다가, 해당 에러가 발생했다.

 

검색해보니 eslint setting쪽 문제였다.

 

https://stackoverflow.com/questions/71271760/parsing-error-no-babel-config-file-detected-when-ide-not-open-at-vue-projects

 

"Parsing error: No babel config file detected" when IDE not open at Vue projects root directory

I stumbled into a problem where in VS Code, when a Vue project is created and not open at root directory of the Vue project, babel.config.js wouldn't load and IDE would be confused as to where the ...

stackoverflow.com

 

vscode에서 설정을 바꾸면 된다.

 

1. File > Preferences > Settings에서 eslint 검색 , Edit in setting.json 클릭 

 

2. "eslint.workingDirectories": [ {"mode": "auto"} ], 를 넣어준다. 

3. 해결!