Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- 코드트리
- 사이드프로젝트
- 프로그래머스
- 크래프톤 정글
- CSS
- 핀토스
- 모션비트
- 자바
- corou
- TiL
- 크래프톤정글
- 스택
- 정보처리기사
- pintos
- 큐
- 알고리즘
- 시스템콜
- defee
- Flutter
- 리액트
- 나만무
- 소켓
- JavaScript
- 자바스크립트
- HTML
- 백준
- userprog
- Vue.js
- 4기
- Java
Archives
- Today
- Total
문미새 개발일지
Parsing error: No Babel config file detected for "경로". Either disable config file checking with requireConfigFile: false, or configure Babel so that it can find the config files.eslint 에러 해결 본문
vue.js
Parsing error: No Babel config file detected for "경로". Either disable config file checking with requireConfigFile: false, or configure Babel so that it can find the config files.eslint 에러 해결
문미새 2024. 7. 4. 21:31728x90
어제도 에러해결하고 정상작동하는 걸 확인했는데, 오늘은 갑자기 파싱 에러가 떴다.
다행히 이건 바벨 세팅이 안되어있어 에러가 발생한다고 하는 문제였기 때문에 구글링하여 파일 세팅을 해줬다.
본인 에러는 .eslintrc.js와 .eslintrc.json, vue.config.js를 세팅해줬더니 해결되었다.
.eslintrc.js
module.exports = {
root: true,
env: {
node: true,
},
extends: ["plugin:vue/vue3-essential", "eslint:recommended"],
parserOptions: {
parser: "@babel/eslint-parser",
requireConfigFile: false,
},
};
.eslintrc.json
{
"env": {
"browser": true,
"es2021": true
},
"extends": "eslint:recommended",
"overrides": [],
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module"
},
"rules": {}
}
vue.config.js
const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
publicPath: "./",
configureWebpack: {
devtool: "source-map",
},
transpileDependencies: true,
});
jsconfig.json
{
"compilerOptions": {
"target": "es5",
"module": "esnext",
"baseUrl": "./",
"moduleResolution": "node",
"paths": {
"@/*": ["src/*"]
},
"lib": ["esnext", "dom", "dom.iterable", "scripthost"]
}
}
babel.config.js
module.exports = {
presets: ["@babel/preset-env"],
};
728x90
'vue.js' 카테고리의 다른 글
vue 컴포넌트의 주요 기능 (0) | 2024.07.05 |
---|---|
mounted()란? (3) | 2024.07.05 |
vue.js 의 기본적인 routing 코드 (0) | 2024.07.03 |
[vue/no-multiple-template-root]The template root requires exactly one element 에러 해결 (0) | 2024.07.03 |
vue.js 시작 (0) | 2024.07.03 |